Loading tests/fixtures/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ class DumpDataAssertMixin(object): class FixtureLoadingTests(DumpDataAssertMixin, TestCase): def test_initial_data(self): # syncdb introduces 1 initial data object from initial_data.json. # migrate introduces 1 initial data object from initial_data.json. self.assertQuerysetEqual(Book.objects.all(), [ '<Book: Achieving self-awareness of Python programs>' ]) Loading tests/fixtures_model_package/tests.py +3 −3 Original line number Diff line number Diff line Loading @@ -30,12 +30,12 @@ class TestNoInitialDataLoading(TransactionTestCase): available_apps = ['fixtures_model_package'] def test_syncdb(self): def test_migrate(self): with transaction.atomic(): Book.objects.all().delete() management.call_command( 'syncdb', 'migrate', verbosity=0, load_initial_data=False ) Loading Loading @@ -64,7 +64,7 @@ class TestNoInitialDataLoading(TransactionTestCase): class FixtureTestCase(TestCase): def test_initial_data(self): "Fixtures can load initial data into models defined in packages" # syncdb introduces 1 initial data object from initial_data.json # migrate introduces 1 initial data object from initial_data.json self.assertQuerysetEqual( Book.objects.all(), [ 'Achieving self-awareness of Python programs' Loading tests/initial_sql_regress/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ class InitialSQLTests(TestCase): def test_custom_sql(self): """ Simulate the custom SQL loading by syncdb. Simulate the custom SQL loading by migrate. """ connection = connections[DEFAULT_DB_ALIAS] custom_sql = custom_sql_for_model(Simple, no_style(), connection) Loading tests/m2m_regress/models.py +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ class Worksheet(models.Model): # Regression for #11226 -- A model with the same name that another one to # which it has a m2m relation. This shouldn't cause a name clash between # the automatically created m2m intermediary table FK field names when # running syncdb # running migrate class User(models.Model): name = models.CharField(max_length=30) friends = models.ManyToManyField(auth.User) Loading tests/syncdb_signals/__init__.py→tests/migrate_signals/__init__.py +0 −0 File moved. Loading
tests/fixtures/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ class DumpDataAssertMixin(object): class FixtureLoadingTests(DumpDataAssertMixin, TestCase): def test_initial_data(self): # syncdb introduces 1 initial data object from initial_data.json. # migrate introduces 1 initial data object from initial_data.json. self.assertQuerysetEqual(Book.objects.all(), [ '<Book: Achieving self-awareness of Python programs>' ]) Loading
tests/fixtures_model_package/tests.py +3 −3 Original line number Diff line number Diff line Loading @@ -30,12 +30,12 @@ class TestNoInitialDataLoading(TransactionTestCase): available_apps = ['fixtures_model_package'] def test_syncdb(self): def test_migrate(self): with transaction.atomic(): Book.objects.all().delete() management.call_command( 'syncdb', 'migrate', verbosity=0, load_initial_data=False ) Loading Loading @@ -64,7 +64,7 @@ class TestNoInitialDataLoading(TransactionTestCase): class FixtureTestCase(TestCase): def test_initial_data(self): "Fixtures can load initial data into models defined in packages" # syncdb introduces 1 initial data object from initial_data.json # migrate introduces 1 initial data object from initial_data.json self.assertQuerysetEqual( Book.objects.all(), [ 'Achieving self-awareness of Python programs' Loading
tests/initial_sql_regress/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ class InitialSQLTests(TestCase): def test_custom_sql(self): """ Simulate the custom SQL loading by syncdb. Simulate the custom SQL loading by migrate. """ connection = connections[DEFAULT_DB_ALIAS] custom_sql = custom_sql_for_model(Simple, no_style(), connection) Loading
tests/m2m_regress/models.py +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ class Worksheet(models.Model): # Regression for #11226 -- A model with the same name that another one to # which it has a m2m relation. This shouldn't cause a name clash between # the automatically created m2m intermediary table FK field names when # running syncdb # running migrate class User(models.Model): name = models.CharField(max_length=30) friends = models.ManyToManyField(auth.User) Loading