Skip to content

Commit

Permalink
Fix test for deprecation warning for concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Aug 19, 2024
1 parent 51dba82 commit 391de39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_pyalex.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ def test_config():
def test_meta_entities():
_, m = Authors().get(return_meta=True)
assert "count" in m
_, m = Concepts().get(return_meta=True)
assert "count" in m
_, m = Institutions().get(return_meta=True)
assert "count" in m
_, m = Sources().get(return_meta=True)
Expand All @@ -57,6 +55,12 @@ def test_meta_entities():
assert "count" in m


@pytest.mark.filterwarnings("ignore:.*deprecated.*:DeprecationWarning")
def test_meta_entities_deprecated():
_, m = Concepts().get(return_meta=True)
assert "count" in m


def test_works_params():
assert len(Works(params={"filter": {"publication_year": "2020"}}).get()) == 25

Expand Down

0 comments on commit 391de39

Please sign in to comment.