Skip to content

Commit

Permalink
skip test where ENDPOINT is set, but not reachable
Browse files Browse the repository at this point in the history
  • Loading branch information
metazool committed Jul 31, 2024
1 parent 2b23817 commit 73d5c1e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cyto_ml/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,10 @@ def scivision_model():
@pytest.fixture
def env_endpoint():
"""None if ENDPOINT is not set in environment,
or it's set but to an arbitrary string,
utility for skipping integration-type tests"""
return os.environ.get("ENDPOINT", None)
endpoint = os.environ.get("ENDPOINT", None)
# case in which we've got blether in the default config
if endpoint and "https" not in endpoint:
endpoint = None
return endpoint

0 comments on commit 73d5c1e

Please sign in to comment.