From 8ecbb37f715b7eb18264653d9a3f6ee9a44229f9 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Thu, 8 Mar 2018 16:10:49 +0000 Subject: [PATCH] raise 503 if you dont mock api properly in your tests otherwise they'll return unexpected things (eg 404) if you have api running locally (as you often do in dev) --- app/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/config.py b/app/config.py index e6df36d6e..4f824040d 100644 --- a/app/config.py +++ b/app/config.py @@ -99,6 +99,7 @@ class Test(Development): CSV_UPLOAD_BUCKET_NAME = 'test-notifications-csv-upload' LOGO_UPLOAD_BUCKET_NAME = 'public-logos-test' NOTIFY_ENVIRONMENT = 'test' + API_HOST_NAME = 'http://you-forgot-to-mock-an-api-call-to' TEMPLATE_PREVIEW_API_HOST = 'http://localhost:9999'