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.
Comments
Could you please try fixing the xml issue and try again? Thanks!
Could you send some error tracebacks to support@askbot.com? Thanks. The "E's" alone won't say much.
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'")
.@Evgeny I didn't get any response from support@askbot.com -- have you had a chance to take a look at this?
@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.