mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-07 19:28:25 -04:00
Merge pull request #3495 from alphagov/fix-fy21-tests
Fix tests breaking in new financial year
This commit is contained in:
@@ -508,6 +508,7 @@ def test_post_link_service_to_organisation(admin_request, sample_service):
|
|||||||
assert sample_service.organisation_type == 'central'
|
assert sample_service.organisation_type == 'central'
|
||||||
|
|
||||||
|
|
||||||
|
@freeze_time('2021-09-24 13:30')
|
||||||
def test_post_link_service_to_organisation_inserts_annual_billing(admin_request, sample_service):
|
def test_post_link_service_to_organisation_inserts_annual_billing(admin_request, sample_service):
|
||||||
data = {
|
data = {
|
||||||
'service_id': str(sample_service.id)
|
'service_id': str(sample_service.id)
|
||||||
@@ -551,6 +552,7 @@ def test_post_link_service_to_organisation_rollback_service_if_annual_billing_up
|
|||||||
assert len(AnnualBilling.query.all()) == 0
|
assert len(AnnualBilling.query.all()) == 0
|
||||||
|
|
||||||
|
|
||||||
|
@freeze_time('2021-09-24 13:30')
|
||||||
def test_post_link_service_to_another_org(
|
def test_post_link_service_to_another_org(
|
||||||
admin_request, sample_service, sample_organisation):
|
admin_request, sample_service, sample_organisation):
|
||||||
data = {
|
data = {
|
||||||
|
|||||||
Reference in New Issue
Block a user