Revert "add DVLA organisations to API"

This commit is contained in:
Leo Hemsted
2017-04-20 18:21:56 +01:00
committed by GitHub
parent 95b3248a5e
commit c3e56d5d2d
14 changed files with 79 additions and 199 deletions

View File

@@ -43,7 +43,6 @@ from app.models import (
InvitedUser,
Service,
BRANDING_GOVUK,
DVLA_ORG_HM_GOVERNMENT,
KEY_TYPE_NORMAL,
KEY_TYPE_TEAM,
KEY_TYPE_TEST
@@ -78,7 +77,6 @@ def test_create_service(sample_user):
assert service_db.name == "service_name"
assert service_db.id == service.id
assert service_db.branding == BRANDING_GOVUK
assert service_db.dvla_organisation_id == DVLA_ORG_HM_GOVERNMENT
assert service_db.research_mode is False
assert service.active is True
assert sample_user in service_db.users
@@ -265,9 +263,7 @@ def test_create_service_creates_a_history_record_with_current_data(sample_user):
assert sample_user.id == service_history.created_by_id
assert service_from_db.created_by.id == service_history.created_by_id
assert service_from_db.branding == BRANDING_GOVUK
assert service_from_db.dvla_organisation_id == DVLA_ORG_HM_GOVERNMENT
assert service_history.branding == BRANDING_GOVUK
assert service_history.dvla_organisation_id == DVLA_ORG_HM_GOVERNMENT
def test_update_service_creates_a_history_record_with_current_data(sample_user):