Drop making crown not nullable on downgrade as it would fail anyway

This commit is contained in:
Pea Tyczynska
2019-07-18 15:16:37 +01:00
parent 610bf5d149
commit aa88252cf7
2 changed files with 1 additions and 3 deletions

View File

@@ -43,5 +43,3 @@ def upgrade():
def downgrade():
op.execute('DROP TABLE organisation_types')
op.alter_column('services', 'crown', nullable=False)
op.alter_column('services_history', 'crown', nullable=False)

View File

@@ -204,7 +204,7 @@ def test_post_create_organisation_existing_name_raises_400(admin_request, sample
'name': 'Service name',
'crown': False,
'organisation_type': 'foo',
}, 'organisation_type foo is not one of [central, local, nhs_central, nhs_local, emergency_service, school_or_college, other]'), # noqa
}, 'organisation_type foo is not one of [central, local, nhs_central, nhs, nhs_local, emergency_service, school_or_college, other]'), # noqa
))
def test_post_create_organisation_with_missing_data_gives_validation_error(
admin_request,