Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Feb 6, 2025
1 parent e5b20b7 commit 47b0d49
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_dataproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,12 @@ def test_data_proxy_configs():
# check that fallback on env var works
os.environ["GA4GH_VRS_DATAPROXY_URI"] = "seqrepo+:tests/data/seqrepo/latest"
create_dataproxy(None)

# check that method arg takes precedence by passing an invalid arg
with pytest.raises(
ValueError,
match=re.escape(
"create_dataproxy scheme must include provider (e.g., `seqrepo+http:...`)"
),
):
create_dataproxy("file:///path/to/seqrepo/root")

0 comments on commit 47b0d49

Please sign in to comment.