From 8fb9ffa57688303aa2ddf160babdb47cb9d9acf3 Mon Sep 17 00:00:00 2001 From: Aiden <53726630+aiden3c@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:09:00 -0400 Subject: [PATCH] Removed test (#14418) --- 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