Skip to content

Commit

Permalink
Skip ngram tests as API is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Dec 22, 2024
1 parent a0fc2a5 commit c8d00f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_pyalex.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,14 @@ def test_serializable_list(tmpdir):
assert all(isinstance(w, Work) for w in works)


@pytest.mark.skip("This test is not working due to unavailable API.")
def test_ngrams_without_metadata():
r = Works()["W2023271753"].ngrams(return_meta=False)

assert len(r) == 1068


@pytest.mark.skip("This test is not working due to unavailable API.")
def test_ngrams_with_metadata():
r, meta = Works()["W2023271753"].ngrams(return_meta=True)

Expand Down

0 comments on commit c8d00f8

Please sign in to comment.