From bb8bbda91b782a920bf76d3e993ebdba7b88a22e Mon Sep 17 00:00:00 2001 From: Jenifer Tabita Ciuciu-Kiss Date: Tue, 3 Sep 2024 02:30:19 +0200 Subject: [PATCH] fixing testcases --- tests/test_integration.py | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index d5d8b8e..3eb4f39 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -21,13 +21,7 @@ def start_proxy_server(): # Start the proxy server in a subprocess process = subprocess.Popen( [ - 'python3', '-m', 'proxy', - '--ca-key-file', 'ca-key.pem', - '--ca-cert-file', 'ca-cert.pem', - '--ca-signing-key-file', 'ca-signing-key.pem', - '--hostname', IP, - '--port', PORT, - '--plugins', 'ontologytimemachine.custom_proxy.OntologyTimeMachinePlugin' + 'python3', 'ontologytimemachine/custom_proxy.py', ], stdout=subprocess.PIPE, stderr=subprocess.PIPE @@ -128,29 +122,6 @@ def test_linked_web_apis(): generic_test(iri, 'text/turtle') -#def test_ontologi_es(): -# iri = 'http://ontologi.es/days#' -# generic_test(iri, 'text/turtle') - - -def test_https(): - iri = "https://www.w3id.org/simulation/ontology/" - generic_test(iri, 'text/plain; charset=utf-8') - - -def test_https(): - iri = "https://vocab.eccenca.com/auth/" - generic_test(iri, 'text/plain; charset=utf-8') - - -def not_test_all_iris(): - with open('tests/archivo_ontologies_test.txt', 'r') as file: - for line in file: - iri = line.strip() - if iri: # Ensure it's not an empty line - iri_generic_test(iri) - - def generic_test(iri, content_type): response = requests.get(iri, proxies=PROXIES, verify=CA_CERT_PATH) assert response.status_code == 200