Skip to content

Commit 4e7ef6c

Browse files
committed
tests: Ignore deprecated public module in api/inventory test
1 parent 7207449 commit 4e7ef6c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/test_internals.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,12 @@ def test_inventory_matches_api(
169169
for item in inventory.values():
170170
if item.domain == "py" and "(" not in item.name:
171171
obj = loader.modules_collection[item.name]
172-
if obj.path not in public_api_paths and not any(path in public_api_paths for path in obj.aliases):
172+
if (
173+
obj.path not in public_api_paths
174+
and not any(path in public_api_paths for path in obj.aliases)
175+
# YORE: Bump 1: Remove line.
176+
and not (obj.is_module and obj.package.name == "griffe")
177+
):
173178
not_in_api.append(item.name)
174179
msg = "Inventory objects not in public API (try running `make run mkdocs build`):\n{paths}"
175180
assert not not_in_api, msg.format(paths="\n".join(sorted(not_in_api)))

0 commit comments

Comments
 (0)