Skip to content

Commit

Permalink
tests: Ignore deprecated public module in api/inventory test
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jul 14, 2024
1 parent 7207449 commit 4e7ef6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ def test_inventory_matches_api(
for item in inventory.values():
if item.domain == "py" and "(" not in item.name:
obj = loader.modules_collection[item.name]
if obj.path not in public_api_paths and not any(path in public_api_paths for path in obj.aliases):
if (
obj.path not in public_api_paths
and not any(path in public_api_paths for path in obj.aliases)
# YORE: Bump 1: Remove line.
and not (obj.is_module and obj.package.name == "griffe")
):
not_in_api.append(item.name)
msg = "Inventory objects not in public API (try running `make run mkdocs build`):\n{paths}"
assert not not_in_api, msg.format(paths="\n".join(sorted(not_in_api)))
Expand Down

0 comments on commit 4e7ef6c

Please sign in to comment.