File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -311,9 +311,8 @@ def test_inner_south():
311
311
}
312
312
""" )
313
313
def test_initial_south_migrations (self , django_testdir_initial ):
314
- """
315
- Test initial data with existing South migrations.
316
- """
314
+ """This should fail, because it has no real migration that
315
+ would create the table, and so no initial data can be loaded."""
317
316
testdir = django_testdir_initial
318
317
testdir .create_test_module ('''
319
318
import pytest
@@ -326,12 +325,9 @@ def test_inner_south():
326
325
testdir .create_initial_south_migration ()
327
326
328
327
result = testdir .runpytest ('--tb=short' , '-v' , '-s' )
329
- assert result .ret == 0
330
- result .stdout .fnmatch_lines_random ([
331
- "tpkg/test_the_test.py::test_inner_south*" ,
332
- "*mark_south_migration_forwards*" ,
333
- "*PASSED*" ,
334
- "*Destroying test database for alias 'default'...*" ])
328
+ assert result .ret != 0
329
+ result .stderr .fnmatch_lines (['*no such table: app_item*' ])
330
+ result .stdout .fnmatch_lines (['*mark_south_migration_forwards*' ])
335
331
336
332
@pytest .mark .django_project (extra_settings = """
337
333
INSTALLED_APPS += [ 'south', ]
You can’t perform that action at this time.
0 commit comments