test_migrations_recorded_as_(latest|zero) tests passing :)
This commit is contained in:
parent
01040b78e1
commit
9548c6463b
@ -356,11 +356,13 @@ class TestMigrations(object):
|
|||||||
Make sure that if we don't have a migration_status
|
Make sure that if we don't have a migration_status
|
||||||
pre-recorded it's marked as the latest
|
pre-recorded it's marked as the latest
|
||||||
"""
|
"""
|
||||||
pass
|
self.migration_manager.install_migration_version_if_missing()
|
||||||
|
assert self.migration_manager.database_current_migration() == 4
|
||||||
|
|
||||||
def test_no_migrations_recorded_as_zero(self):
|
def test_no_migrations_recorded_as_zero(self):
|
||||||
"""
|
"""
|
||||||
Make sure that if we don't have a migration_status
|
Make sure that if we don't have a migration_status
|
||||||
but there *are* no migrations that it's marked as 0
|
but there *are* no migrations that it's marked as 0
|
||||||
"""
|
"""
|
||||||
pass
|
self.empty_migration_manager.install_migration_version_if_missing()
|
||||||
|
assert self.empty_migration_manager.database_current_migration() == 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user