Skip to content

Commit 0307238

Browse files
committed
Remove deliberately failing django_use_model test
1 parent 3838765 commit 0307238

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tests/test_database.py

-16
Original file line numberDiff line numberDiff line change
@@ -165,22 +165,6 @@ def test_unmanaged_destroyed(self):
165165
self.test_unmanaged_missing()
166166

167167

168-
# TODO: Remove this next test before release
169-
@pytest.mark.skipif(not hasattr(connection, 'schema_editor'),
170-
reason="This Django version does not support SchemaEditor")
171-
@pytest.mark.django_db
172-
@pytest.mark.django_use_model(model=Unmanaged)
173-
def test_marked_test_not_get_hit():
174-
"""
175-
A failing test like this was originally added to demonstrate that adding
176-
"@pytest.mark.django_use_model(ModelClass)" caused a test not to be
177-
collected. It's left here to demonstrate that it's now being collected
178-
when called with model=ModelClass instead; it should be removed before
179-
the next release.
180-
"""
181-
assert "This test failing shows that it is being collected and run" is False
182-
183-
184168
def test_unittest_interaction(django_testdir):
185169
"Test that (non-Django) unittests cannot access the DB."
186170

0 commit comments

Comments
 (0)