From a0470b40ea76727e4ab0fb549c43f1fd99a44c70 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Tue, 11 Apr 2017 17:15:31 +0100 Subject: [PATCH] fix test syntax --- app/cloudfoundry_config.py | 1 - tests/app/test_cloudfoundry_config.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/cloudfoundry_config.py b/app/cloudfoundry_config.py index 5f3eaa025..5ad48d854 100644 --- a/app/cloudfoundry_config.py +++ b/app/cloudfoundry_config.py @@ -53,7 +53,6 @@ def extract_deskpro_config(deskpro_config): os.environ['DESKPRO_API_KEY'] = deskpro_config['credentials']['api_key'] - def extract_template_preview_config(template_preview_config): os.environ['TEMPLATE_PREVIEW_API_HOST'] = template_preview_config['credentials']['api_host'] os.environ['TEMPLATE_PREVIEW_API_KEY'] = template_preview_config['credentials']['api_key'] diff --git a/tests/app/test_cloudfoundry_config.py b/tests/app/test_cloudfoundry_config.py index 62e8a64da..a3a8ab63a 100644 --- a/tests/app/test_cloudfoundry_config.py +++ b/tests/app/test_cloudfoundry_config.py @@ -144,7 +144,7 @@ def test_deskpro_config(): @pytest.mark.usefixtures('os_environ', 'cloudfoundry_environ') -def test_template-preview_config(): +def test_template_preview_config(): extract_cloudfoundry_config() assert os.environ['TEMPLATE_PREVIEW_API_HOST'] == 'template-preview api host'