mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 21:38:24 -04:00
fix test syntax
This commit is contained in:
@@ -53,7 +53,6 @@ def extract_deskpro_config(deskpro_config):
|
|||||||
os.environ['DESKPRO_API_KEY'] = deskpro_config['credentials']['api_key']
|
os.environ['DESKPRO_API_KEY'] = deskpro_config['credentials']['api_key']
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def extract_template_preview_config(template_preview_config):
|
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_HOST'] = template_preview_config['credentials']['api_host']
|
||||||
os.environ['TEMPLATE_PREVIEW_API_KEY'] = template_preview_config['credentials']['api_key']
|
os.environ['TEMPLATE_PREVIEW_API_KEY'] = template_preview_config['credentials']['api_key']
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ def test_deskpro_config():
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.usefixtures('os_environ', 'cloudfoundry_environ')
|
@pytest.mark.usefixtures('os_environ', 'cloudfoundry_environ')
|
||||||
def test_template-preview_config():
|
def test_template_preview_config():
|
||||||
extract_cloudfoundry_config()
|
extract_cloudfoundry_config()
|
||||||
|
|
||||||
assert os.environ['TEMPLATE_PREVIEW_API_HOST'] == 'template-preview api host'
|
assert os.environ['TEMPLATE_PREVIEW_API_HOST'] == 'template-preview api host'
|
||||||
|
|||||||
Reference in New Issue
Block a user