First time here? Check out the FAQ!
1

Why are the tests not passing in my Askbot installation on MySQL?
 

Here is what I did.

$ git clone https://github.com/ASKBOT/askbot-devel.git askbot-devel
$ cd askbot-devel
$ sudo python setup.py develop
$ ... (here create a DB in mysql)
$ askbot-setup
  - chose current directory.
  - entered working DB info.
$ python manage.py syncdb
$ python manage.py migrate
$ python manage.py test askbot
(some messages)
.......EEE....................................ssss.E.........E...E.........E..E.........E..E..........E...E.........E..E.........E...E.............EEEEEEEEEEEEEE.................EEEEEE.............................................................EEEE..EE.......................E........................E.........E..E.........E..E..........E..E.E.E.EE.................
Ran 610 tests in 511.977s
FAILED (errors=80, skipped=4)

UPDATE: Evgeny correctly pointed out that some errors could be avoided by setting COMPRESS_PARSER = 'compressor.parser.HtmlParser' in settings.py. After doing that, I still got errors, but fewer:

$ python manage.py test askbot
(some messages)
.........................................................E.........E..E.........E.......................E.......E...E.E.....E............E.................................................................E.........E............EE.....................................ssss.E.........E...E.........E..E.........E..E..........E...E.........E..E.........E...E.....E.........................E...
Ran 610 tests in 494.058s
FAILED (failures=1, errors=42, skipped=4)

So now only 42 errors and 1 failure. Still, there seem to be issues?

UPDATE 2: Tests (mostly) fixed by some patches. Pull request submitted.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
bobbydavid's avatar
1
bobbydavid
asked 12 years ago, updated 11 years ago

Comments

Could you please try fixing the xml issue and try again? Thanks!

Evgeny's avatar Evgeny (12 years ago)

Could you send some error tracebacks to support@askbot.com? Thanks. The "E's" alone won't say much.

Evgeny's avatar Evgeny (12 years ago)

Instead of emailing, I'll just post it here: In the error tracebacks, the errors are: DatabaseError: (1054, "Unknown column 'askbot_replyaddress.reply_action' in 'field list'").

bobbydavid's avatar bobbydavid (12 years ago)

@Evgeny I didn't get any response from support@askbot.com -- have you had a chance to take a look at this?

bobbydavid's avatar bobbydavid (11 years ago)

@Evgeny Still haven't heard anything about these tests. Are you removing support for MySQL? If so, it would be helpful to update the documentation. Otherwise, can we fix the broken tests? Thanks.

bobbydavid's avatar bobbydavid (11 years ago)
see more comments

1 Answer

0

This rings the bell: Error while importing lxml: No module... This issue comes from the django-compressor app and may be avoided by setting:

COMPRESS_PARSER = 'compressor.parser.HtmlParser'

That said - there still may be issues with MySQL as we switched to Postgres for the production and Sqlite3 for development and we have not been testing MySQL deployments lately.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

Updated question after adding that line. Still errors... :(

bobbydavid's avatar bobbydavid (12 years ago)
see more comments