Skip to content

Commit 803ef9a

Browse files
committed
Added 'makemigration' command to tests
1 parent 2e09d3f commit 803ef9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

simple_history/tests/tests/test_commands.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,11 @@ def test_no_historical(self):
108108
out.getvalue())
109109

110110

111+
@skipUnless(django.get_version() >= "1.7", "Requires 1.7 migrations")
111112
class TestMigrate(TestCase):
112113

113-
@skipUnless(django.get_version() >= "1.7", "Requires 1.7 migrations")
114+
def test_migrate_command(self):
115+
management.call_command('makemigration', 'migration_test_app', stdout=StringIO())
116+
114117
def test_migrate_command(self):
115118
management.call_command('migrate', 'migration_test_app', fake=True, stdout=StringIO())

0 commit comments

Comments
 (0)