Failure in test run for yourlabs example
sachingupta006 opened this issue · 3 comments
I installed redis on my windows system and then ran the test for yourlabs example using the command manage.py test subscription
and the I got a failure result as
Ran 8 tests in 0.085s
FAILED (failures=3)`
Can anybody help me to understand why am I getting this failure?
Thank you for your feedback. Could you please run the tests as such:
./manage.py test -v2 subscription
And paste the output (it should show the failing tests). I just ran the test on Linux and python 2.7 and they all pass so probably there is a problem in the windows support of this app.
I tried out what you said and I am still getting the same failure. 3 out of the 8 tests failed because there was some incompatibility in the expected and the actual result. The actual result was not wrong but the order was different. Here I am adding one of the failures
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\django_subscription-0.1-py2.7.egg\subscription\examples\yourlabs\tests.py", line 88, in test_000_notification_list_page
self.assertEqual(expected, result)
AssertionError: Lists differ: [{'queue': 'friends', 'text': ... != [{'queue': 'friends', 'timesta...
There is no option here otherwise I would have uploaded the whole console output in a file.
Could this problem be because I am developing on windows, and redis maybe improperly configured? However since 5 out of the 8 tests passed, I doubt that can be a reason.
Thanks for your feedback. Apparently i removed the tests in favor of the sample project in the last version of the code which we actually use in production on betspire.com. So i'm closing this issue for now.