Skip to content

Commit

Permalink
test: skip umls test if no api key (e.g. third-party PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw committed Aug 7, 2023
1 parent fbf4a86 commit 5e85f79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/pipelines/ner/test_umls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
pattern_config = {"lang": ["FRE"], "sources": ["MSHFRE"]}


@pytest.mark.skipif(not os.getenv("UMLS_API_KEY"), reason="No UMLS_API_KEY given")
def test_get_patterns():

path, _, _ = get_path(pattern_config)
Expand All @@ -41,6 +42,7 @@ def test_get_patterns():
assert len(patterns) == 48587


@pytest.mark.skipif(not os.getenv("UMLS_API_KEY"), reason="No UMLS_API_KEY given")
def test_add_pipe(blank_nlp: Language):
path, _, _ = get_path(pattern_config)
if not path.exists():
Expand Down

0 comments on commit 5e85f79

Please sign in to comment.