From ac34b26b4582337378884da8e076184f24db8f8d Mon Sep 17 00:00:00 2001 From: Aiden Baker Date: Wed, 4 Sep 2024 14:56:35 -0400 Subject: [PATCH] Removed test --- tests/api2/test_openapi.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 tests/api2/test_openapi.py diff --git a/tests/api2/test_openapi.py b/tests/api2/test_openapi.py deleted file mode 100644 index 975d66a428185..0000000000000 --- a/tests/api2/test_openapi.py +++ /dev/null @@ -1,16 +0,0 @@ -import pytest -import sys -import os - -apifolder = os.getcwd() -sys.path.append(apifolder) -from functions import GET - - - -@pytest.mark.parametrize('protocol,force_ssl', [('http', False), ('https', True)]) -def test_protocol_reported_correctly(protocol, force_ssl): - response = GET('', force_ssl=force_ssl) - server_urls = response.json()['servers'] - for url_dict in filter(lambda d: 'url' in d, server_urls): - assert url_dict['url'].startswith(protocol) is True, url_dict