Moved mmg_url to configs.

Fix up the tests
This commit is contained in:
Rebecca Law
2016-07-20 10:40:50 +01:00
parent 30f7377d7e
commit c8ad5362eb
5 changed files with 17 additions and 25 deletions

View File

@@ -551,18 +551,6 @@ def mock_firetext_client(mocker, statsd_client=None):
return client
@pytest.fixture(scope='function')
def mock_mmg_client(mocker, statsd_client=None):
client = MMGClient()
statsd_client = statsd_client or mocker.Mock()()
current_app = mocker.Mock(config={
'MMG_API_KEY': 'foo',
'FROM_NUMBER': 'bar'
})
client.init_app(current_app, statsd_client)
return client
@pytest.fixture(scope='function')
def sms_code_template(notify_db,
notify_db_session):