I use expectedFailure because there is an error that I want to write that I cannot fix right now, but I want to return to it in the future. My understanding of expectedFailure is that it will consider the test passed, but the summary says that there were x the number of expected failures (similar to how it works with missing tets).
However, when I run my test suite, I get the following:
$ ./manage.py test eav.QueryTest Creating test database for alias 'default'... .EE ====================================================================== ERROR: test_q_object_with_exclude (eav.tests.managers.QueryTest) ---------------------------------------------------------------------- _ExpectedFailure ====================================================================== ERROR: test_q_objects_unioned (eav.tests.managers.QueryTest) ---------------------------------------------------------------------- _ExpectedFailure ---------------------------------------------------------------------- Ran 3 tests in 1.095s FAILED (errors=2) Destroying test database for alias 'default'...
I'm not sure if this is due to the Django test runner or something that I am doing wrong.
@unittest.expectedFailure def test_q_object_with_exclude(self):
source share