Updated the Provider stats and rates DAO objects to query based on the identifier in the ProviderDetails object.

- updated all tests
- changed teardown to leave provider details rows on end of individual tests
This commit is contained in:
Martyn Inglis
2016-05-06 09:09:47 +01:00
parent fedbb27ffd
commit 57e05feafb
15 changed files with 149 additions and 135 deletions

View File

@@ -62,7 +62,6 @@ def upgrade():
"UPDATE provider_statistics set provider_id = (select id from provider_details where identifier = 'ses') where provider = 'ses'"
)
def downgrade():
op.drop_constraint(None, 'provider_statistics', type_='foreignkey')
@@ -73,4 +72,3 @@ def downgrade():
op.drop_column('provider_rates', 'provider_id')
op.drop_table('provider_details')
### end Alembic commands ###