Ask Your Question
1

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

asked 2013-04-23 10:19:42 -0500

bobbydavid gravatar image

updated 2013-05-23 15:08:10 -0500

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.

edit retag flag offensive close merge delete

Comments

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

Evgeny gravatar imageEvgeny ( 2013-04-23 14:18:11 -0500 )edit

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

Evgeny gravatar imageEvgeny ( 2013-04-24 02:55:16 -0500 )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 gravatar imagebobbydavid ( 2013-04-24 08:27:15 -0500 )edit

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

bobbydavid gravatar imagebobbydavid ( 2013-05-08 16:28:33 -0500 )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 gravatar imagebobbydavid ( 2013-05-13 17:13:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-23 13:47:26 -0500

Evgeny gravatar image

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.

edit flag offensive delete link more

Comments

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

bobbydavid gravatar imagebobbydavid ( 2013-04-23 18:09:21 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-04-23 10:19:42 -0500

Seen: 290 times

Last updated: May 23 '13