Skip to content

Commit

Permalink
correct schema version in migration test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed Oct 26, 2016
1 parent 46b72e3 commit 3403f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openprocurement/contracting/api/tests/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_migrate_from0to1(self):
self.assertIn('Signature=', migrated_item['documents'][0]['url'])

def test_migrate_from1to2(self):
set_db_schema_version(self.db, 0)
set_db_schema_version(self.db, 1)
with open(os.path.join(os.path.dirname(__file__), 'data/tender-contract-complete.json'), 'r') as df:
data = json.loads(df.read())

Expand All @@ -72,7 +72,7 @@ def test_migrate_from1to2(self):
self.assertNotIn("value", contract_data)
self.assertNotIn("suppliers", contract_data)

migrate_data(self.app.app.registry, 1)
migrate_data(self.app.app.registry, 2)
migrated_item = self.db.get(contract.id)

self.assertIn("value", migrated_item)
Expand Down

0 comments on commit 3403f68

Please sign in to comment.