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.

bobbydavid's avatar
1
bobbydavid
asked 2013-04-23 10:19:42 -0600, updated 2013-05-23 15:08:10 -0600
edit flag offensive 0 remove flag close merge delete

Comments

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

Evgeny's avatar Evgeny (2013-04-23 14:18:11 -0600) edit

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

Evgeny's avatar Evgeny (2013-04-24 02:55:16 -0600) edit

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 (2013-04-24 08:27:15 -0600) edit

@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 (2013-05-08 16:28:33 -0600) edit

@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 (2013-05-13 17:13:08 -0600) edit
add a comment 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.

Evgeny's avatar
13.2k
Evgeny
answered 2013-04-23 13:47:26 -0600
edit flag offensive 0 remove flag delete link

Comments

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

bobbydavid's avatar bobbydavid (2013-04-23 18:09:21 -0600) edit
add a comment see more comments