This commit is contained in:
Kenneth Kehl
2023-05-01 13:41:48 -07:00
parent be04edd04a
commit 0dce30bf5e
5 changed files with 6 additions and 7 deletions

View File

@@ -891,7 +891,7 @@ def test_update_service_permissions_will_add_service_permissions(client, sample_
auth_header = create_admin_authorization_header()
data = {
'permissions': [EMAIL_TYPE, SMS_TYPE],
'permissions': [EMAIL_TYPE, SMS_TYPE]
}
resp = client.post(
@@ -1015,7 +1015,7 @@ def test_should_not_update_service_with_duplicate_name(notify_api,
email_from='another.name')
data = {
'name': service_name,
'created_by': str(service.created_by.id),
'created_by': str(service.created_by.id)
}
auth_header = create_admin_authorization_header()
@@ -1046,7 +1046,7 @@ def test_should_not_update_service_with_duplicate_email_from(notify_api,
data = {
'name': service_name,
'email_from': email_from,
'created_by': str(service.created_by.id),
'created_by': str(service.created_by.id)
}
auth_header = create_admin_authorization_header()

View File

@@ -88,6 +88,7 @@ def _notify_db(notify_api, worker_id):
ALEMBIC_CONFIG = os.path.join(BASE_DIR, 'migrations')
config = Config(ALEMBIC_CONFIG + '/alembic.ini')
config.set_main_option("script_location", ALEMBIC_CONFIG)
with notify_api.app_context():
upgrade(config, 'head')