Skip to content

Commit

Permalink
Fix tests for migration 227 to check sqlite
Browse files Browse the repository at this point in the history
The _check_227 test skips for sqlite despite modifying that dialect.
It also has a redundant check for an existing row that doesn't work
when snake-walking the migration tests.

Change-Id: I58d9a539868d50e345a6dfa78918e04a4a699a68
Closes-Bug: 1240751
  • Loading branch information
jhesketh committed Oct 17, 2013
1 parent 6eda819 commit 1c55232
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions nova/tests/db/test_migrations.py
Expand Up @@ -3194,12 +3194,7 @@ def _check_216(self, engine, data):
self.assertEqual(per_project[resource], rows[0]['in_use'])

def _check_227(self, engine, data):
if engine.name == 'sqlite':
return

table = db_utils.get_table(engine, 'project_user_quotas')
quota = table.select(table.c.id == 4).execute().first()
self.assertEqual(quota['resource'], 'instances')

# Insert fake_quotas with the longest resource name.
fake_quotas = {'id': 5,
Expand Down

0 comments on commit 1c55232

Please sign in to comment.