Skip to content

Commit

Permalink
fixing testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenifer Tabita Ciuciu-Kiss committed Sep 3, 2024
1 parent 4258b98 commit bb8bbda
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bb8bbda

Please sign in to comment.