diff --git a/tests/test_integration.py b/tests/test_integration.py index 26150d0..3f37b31 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -7,7 +7,7 @@ from ontologytimemachine.custom_proxy import IP, PORT -PROXY = f"{IP}:{PORT}" +PROXY = f"{IP[0]}:{PORT}" HTTP_PROXY = f"http://{PROXY}" HTTPS_PROXY = f"http://{PROXY}" PROXIES = {"http": HTTP_PROXY, "https": HTTPS_PROXY} diff --git a/tests/test_proxy_auth_header_archivo.py b/tests/test_proxy_auth_header_archivo.py index 844dcfc..de94163 100644 --- a/tests/test_proxy_auth_header_archivo.py +++ b/tests/test_proxy_auth_header_archivo.py @@ -125,6 +125,7 @@ def make_request_with_proxy(iri: str, mode: str) -> Tuple[int, str]: return mock_response # Parametrize the test cases with data loaded from the TSV file +@pytest.mark.skip(reason="this test is not ready yet") @pytest.mark.parametrize("test_case", load_test_data('tests/archivo_test_IRIs.tsv')) def test_proxy_responses(test_case): enabled = test_case['enable_testcase'] diff --git a/tests/test_proxy_auth_header_non_archivo.py b/tests/test_proxy_auth_header_non_archivo.py index b878b5c..a2d59a6 100644 --- a/tests/test_proxy_auth_header_non_archivo.py +++ b/tests/test_proxy_auth_header_non_archivo.py @@ -122,6 +122,7 @@ def make_request_with_proxy(iri: str, mode: str) -> Tuple[int, str]: # Parametrize the test cases with data loaded from the TSV file +@pytest.mark.skip(reason="this test is not ready yet") @pytest.mark.parametrize("test_case", load_test_data('tests/non_archivo_test_IRIs.tsv')) def test_proxy_responses(test_case): enabled = test_case['enable_testcase'] diff --git a/tests/test_proxypy.py b/tests/test_proxypy.py index 4240863..61a41c9 100644 --- a/tests/test_proxypy.py +++ b/tests/test_proxypy.py @@ -1,4 +1,5 @@ import unittest +import pytest import requests import csv from proxy.proxy import Proxy @@ -166,7 +167,7 @@ def evaluate_results(self, direct_response, proxy_response, error_dimension, exp if error_found: self.fail("One or more assertions failed. See logs for details.") - + @pytest.mark.skip(reason="this test is not ready yet") def test_requests_with_different_onto_versions(self): """Test requests with different OntoVersions and compare results.""" # Make request without proxy diff --git a/tests/test_proxypy_embedded.py b/tests/test_proxypy_embedded.py index c07edfb..88c2a30 100644 --- a/tests/test_proxypy_embedded.py +++ b/tests/test_proxypy_embedded.py @@ -73,6 +73,7 @@ def make_request_with_proxy(self, iri: str, proxy_port: int, mode: str) -> Tuple logger.error(f"Request exception: {e}", exc_info=True) return {'status_code': 'error'} + @pytest.mark.skip(reason="this test is just as a preliminary test showcasing how to spin up the proxy server embedded and not standalone but requires further refactoring of the main routines to work properly") def test_function1(self) -> None: logger.debug("~~~~~~~~~~~~~~~~~~~~~~~______________________________#Debug message from imported time machine logger") logger.debug(vars(logger))