Revision history [back]
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.
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.
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 Here are some tests that some errors could be avoided by setting failed (not all of them):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)
ERROR: test_correct_template_loading
(askbot.tests.widget_tests.WidgetLoginViewTest)
ERROR: test_list_ask_widget_view
(askbot.tests.widget_tests.WidgetCreatorViewsTests)
ERROR: test_edit_ask_widget_get
(askbot.tests.widget_tests.WidgetCreatorViewsTests)
ERROR: test_delete_ask_widget_get
(askbot.tests.widget_tests.WidgetCreatorViewsTests)
ERROR: test_create_ask_widget_get
(askbot.tests.widget_tests.WidgetCreatorViewsTests)
ERROR: test_question_comment_delete
(askbot.tests.email_alert_tests.WeeklyQAskEmailAlertTests)
target user posts question other user
posts a comment ERROR:
test_answer_delete_comment
(askbot.tests.email_alert_tests.WeeklyQAskEmailAlertTests)
ERROR: test_question_comment_delete
(askbot.tests.email_alert_tests.WeeklyQAnsEmailAlertTests)
target user posts question other user
posts a comment ERROR:
test_answer_delete_comment
(askbot.tests.email_alert_tests.WeeklyQAnsEmailAlertTests)
ERROR: test_question_comment_delete
(askbot.tests.email_alert_tests.WeeklyMentionsAndCommentsEmailAlertTests)
target user posts question other user
posts a comment ERROR:
test_answer_delete_comment
(askbot.tests.email_alert_tests.WeeklyMentionsAndCommentsEmailAlertTests)
ERROR: test_delete_user
(askbot.tests.user_model_tests.UserModelTests)
DatabaseError: (1054, "Unknown column
'askbot_replyaddress.reply_action' in
'field list'") ERROR: test_view_count
(askbot.tests.post_model_tests.ThreadRenderCacheUpdateTests)ImproperlyConfigured:
Error while importing lxml: No module
named BeautifulSoup ERROR:
test_answer_question
(askbot.tests.post_model_tests.ThreadRenderCacheUpdateTests)
ERROR:
test_meta_description_has_question_summary
(askbot.tests.page_load_tests.QuestionViewTests)
ERROR: test_show_comment
(askbot.tests.page_load_tests.QuestionPageRedirectTests)
So now only 42 errors and 1 failure. Still, there seem to be issues?
Why are the tests not passing in my Askbot installation on MySQL?installation?
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)
Here are some tests that failed (not all of them):
ERROR: test_correct_template_loading
(askbot.tests.widget_tests.WidgetLoginViewTest)
ERROR: test_list_ask_widget_view
(askbot.tests.widget_tests.WidgetCreatorViewsTests)
ERROR: test_edit_ask_widget_get
(askbot.tests.widget_tests.WidgetCreatorViewsTests)
ERROR: test_delete_ask_widget_get
(askbot.tests.widget_tests.WidgetCreatorViewsTests)
ERROR: test_create_ask_widget_get
(askbot.tests.widget_tests.WidgetCreatorViewsTests)
ERROR: test_question_comment_delete
(askbot.tests.email_alert_tests.WeeklyQAskEmailAlertTests)
target user posts question other user
posts a comment ERROR:
test_answer_delete_comment
(askbot.tests.email_alert_tests.WeeklyQAskEmailAlertTests)
ERROR: test_question_comment_delete
(askbot.tests.email_alert_tests.WeeklyQAnsEmailAlertTests)
target user posts question other user
posts a comment ERROR:
test_answer_delete_comment
(askbot.tests.email_alert_tests.WeeklyQAnsEmailAlertTests)
ERROR: test_question_comment_delete
(askbot.tests.email_alert_tests.WeeklyMentionsAndCommentsEmailAlertTests)
target user posts question other user
posts a comment ERROR:
test_answer_delete_comment
(askbot.tests.email_alert_tests.WeeklyMentionsAndCommentsEmailAlertTests)
ERROR: test_delete_user
(askbot.tests.user_model_tests.UserModelTests)
DatabaseError: (1054, "Unknown column
'askbot_replyaddress.reply_action' in
'field list'") ERROR: test_view_count
(askbot.tests.post_model_tests.ThreadRenderCacheUpdateTests)ImproperlyConfigured:
Error while importing lxml: No module
named BeautifulSoup ERROR:
test_answer_question
(askbot.tests.post_model_tests.ThreadRenderCacheUpdateTests)
ERROR:
test_meta_description_has_question_summary
(askbot.tests.page_load_tests.QuestionViewTests)
ERROR: test_show_comment
(askbot.tests.page_load_tests.QuestionPageRedirectTests)