mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
remove provider_rates table
this was added five years ago but never used. if we want to bring back variable rates per client we might as well get a fresh start since a lot has changed since then.
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
|
||||
from app.dao.provider_rates_dao import create_provider_rates
|
||||
from app.models import ProviderDetails, ProviderRates
|
||||
|
||||
|
||||
def test_create_provider_rates(notify_db, notify_db_session, mmg_provider):
|
||||
now = datetime.now()
|
||||
rate = Decimal("1.00000")
|
||||
|
||||
provider = ProviderDetails.query.filter_by(identifier=mmg_provider.identifier).one()
|
||||
|
||||
create_provider_rates(mmg_provider.identifier, now, rate)
|
||||
assert ProviderRates.query.count() == 1
|
||||
assert ProviderRates.query.first().rate == rate
|
||||
assert ProviderRates.query.first().valid_from == now
|
||||
assert ProviderRates.query.first().provider_id == provider.id
|
||||
Reference in New Issue
Block a user