Skip to content

Commit

Permalink
Update SCHEMA_VERSION for tests (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksiyVeretiuk authored and leits committed Apr 1, 2019
1 parent f9e4d61 commit 4e4743d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openprocurement/auctions/rubble/tests/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def setUp(self):
migration_resources = MigrationResourcesDTO_mock(self.db, aliases_info_dict)

self.runner = RubbleMigrationsRunner(migration_resources)
self.runner.SCHEMA_VERSION = 1
self.steps = (MigrateAwardingStep,)
self.runner.migrate(self.steps)

Expand All @@ -69,6 +70,7 @@ def setUp(self):
migration_resources = MigrationResourcesDTO_mock(self.db, aliases_info_dict)

self.runner = RubbleMigrationsRunner(migration_resources)
self.runner.SCHEMA_VERSION = 1
self.steps = (MigrateAwardingStep, )
self.runner.migrate(self.steps)
self.runner._set_db_schema_version(0)
Expand Down Expand Up @@ -99,6 +101,7 @@ def setUp(self):
migration_resources = MigrationResourcesDTO_mock(self.db, aliases_info_dict)

self.runner = RubbleMigrationsRunner(migration_resources)
self.runner.SCHEMA_VERSION = 1
self.steps = (MigrateAwardingStep, )
self.runner.migrate(self.steps)
self.runner._set_db_schema_version(0)
Expand All @@ -116,6 +119,7 @@ def setUp(self):
migration_resources = MigrationResourcesDTO_mock(self.db, aliases_info_dict)

self.runner = RubbleMigrationsRunner(migration_resources)
self.runner.SCHEMA_VERSION = 1
self.steps = (MigrateAwardingStep,)
self.runner.migrate(self.steps)
self.runner._set_db_schema_version(0)
Expand All @@ -136,6 +140,7 @@ def setUp(self):
migration_resources = MigrationResourcesDTO_mock(self.db, aliases_info_dict)

self.runner = RubbleMigrationsRunner(migration_resources)
self.runner.SCHEMA_VERSION = 1
self.steps = (RenameDgfIdToLotIdentifierStep, )


Expand Down

0 comments on commit 4e4743d

Please sign in to comment.