Skip to content

Commit

Permalink
I really should test this locally before pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
rmb938 committed Oct 16, 2017
1 parent effd383 commit 26b437d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def upgrade():

def downgrade():
op.drop_constraint('uq_username_driver', 'authn_users', 'unique')
op.drop_table('users')
op.drop_table('authn_users')
4 changes: 4 additions & 0 deletions ingredients_db/test/test_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def test_model_and_migration_schemas_are_the_same(self, uri_left, uri_right, ale
from ingredients_db.models.public_key import PublicKey
from ingredients_db.models.task import Task, TaskableEntity
from ingredients_db.models.authn import AuthNUser, AuthNToken
from ingredients_db.models.authz import AuthZPolicy, AuthZRule, AuthZRole

# Make sure the imports don't go away
Image.mro()
Expand All @@ -92,6 +93,9 @@ def test_model_and_migration_schemas_are_the_same(self, uri_left, uri_right, ale
TaskableEntity.mro()
AuthNUser.mro()
AuthNToken.mro()
AuthZPolicy.mro()
AuthZRule.mro()
AuthZRole.mro()

setup_extensions(uri_right)
prepare_schema_from_models(uri_right, Base)
Expand Down

0 comments on commit 26b437d

Please sign in to comment.