move BroadcastProvider from models.py to config.py

It's not something that is tied to a database table, and was causing
circular import issues
This commit is contained in:
Leo Hemsted
2020-11-16 12:47:38 +00:00
parent bc3512467b
commit 7cc83e04eb
5 changed files with 74 additions and 30 deletions

View File

@@ -2,7 +2,7 @@ import json
import boto3
from app.models import BroadcastProviders
from app.config import BroadcastProvider
# The variable names in this file have specific meaning in a CAP message
#
@@ -70,7 +70,7 @@ class CBCProxyNoopClient:
class CBCProxyClient:
provider_function_name_map = {
BroadcastProviders.EE: 'bt-ee-1-proxy',
BroadcastProvider.EE: 'bt-ee-1-proxy',
}
def init_app(self, app):
@@ -111,7 +111,6 @@ class CBCProxyClient:
def send_link_test(
self,
identifier,
provider,
):
"""
link test - open up a connection to a specific provider, and send them an xml payload with a <msgType> of