3
I Use This!
Inactive

News

Analyzed about 17 hours ago. based on code collected about 18 hours ago.
Posted over 13 years ago by almad
duplicate: Meh, see #40
Posted over 13 years ago by almad
aka test interaction debug: force flush after every case, slowing things down, but ensuring proper isolation.
Posted over 13 years ago by almad
This is fixable with --nocapture, but is certainly non-obvious. Find a way to fix or at least document it.
Posted over 13 years ago by almad
In some of my setups, for some reason, translation tests are failing: ====================================================================== FAIL: testproject.test.test_liveserver.TestSeleniumWorks.test_czech_string_acquired_even_with_selenium ... [More] ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/nose/case.py", line 186, in runTest self.test(*self.arg) File "/home/almad/project/django-sane-testing/testproject/../testproject/test/test_liveserver.py", line 64, in test_czech_string_acquired_even_with_selenium self.assert_equals(u"Přeložitelný řetězec", unicode(ExampleModel.get_translated_string())) File "/home/almad/project/django-sane-testing/testproject/../djangosanetesting/cases.py", line 43, in assert_equals assert_equals(*args, **kwargs) AssertionError: u'P\u0159elo\u017eiteln\xfd \u0159et\u011bzec' != u'Translatable string' ====================================================================== FAIL: testproject.test.test_unit.TestNotDefaultTranslations.test_english_string_acquired ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/nose/case.py", line 186, in runTest self.test(*self.arg) File "/home/almad/project/django-sane-testing/testproject/../testproject/test/test_unit.py", line 136, in test_english_string_acquired self.assert_equals(u"Ersetzbare Zeichenkette", unicode(ExampleModel.get_translated_string())) File "/home/almad/project/django-sane-testing/testproject/../djangosanetesting/cases.py", line 43, in assert_equals assert_equals(*args, **kwargs) AssertionError: u'Ersetzbare Zeichenkette' != u'Translatable string' ====================================================================== FAIL: Test we're retrieving string translated to Czech. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/nose/case.py", line 186, in runTest self.test(*self.arg) File "/home/almad/project/django-sane-testing/testproject/../testproject/test/test_unit.py", line 120, in test_czech_string_acquired self.assert_equals(u"Přeložitelný řetězec", unicode(ExampleModel.get_translated_string())) File "/home/almad/project/django-sane-testing/testproject/../djangosanetesting/cases.py", line 43, in assert_equals assert_equals(*args, **kwargs) AssertionError: u'P\u0159elo\u017eiteln\xfd \u0159et\u011bzec' != u'Translatable string' ---------------------------------------------------------------------- Ran 46 tests in 22.990s [Less]
Posted over 13 years ago by almad
Be consistent with django, clear it too. from django.contrib.sites.models import Site Site.objects.clear_cache()
Posted over 13 years ago by almad
(diff)
Posted over 13 years ago by almad
typo again (diff)
Posted over 13 years ago by almad
nose-users link (diff)
Posted over 13 years ago by almad
urllib typo (diff)
Posted over 13 years ago by almad
(diff)