Skip to content

Commit 8d91988

Browse files
committed
Workaround pytest moodiness
1 parent 01d4d7c commit 8d91988

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/test_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
TESTED_MODULES = (griffe, griffecli)
22-
test_all_modules = pytest.mark.parametrize("tested_module", TESTED_MODULES)
22+
_test_all_modules = pytest.mark.parametrize("tested_module", TESTED_MODULES)
2323

2424

2525
@pytest.fixture(name="inventory", scope="module")
@@ -120,7 +120,7 @@ def test_alias_proxies() -> None:
120120
assert name in alias_members
121121

122122

123-
@test_all_modules
123+
@_test_all_modules
124124
def test_exposed_objects(tested_module: ModuleType) -> None:
125125
"""All public objects in the internal API are exposed under `griffe`."""
126126
modulelevel_internal_objects = _get_modulelevel_internal_objects(_get_internal_api(tested_module))
@@ -132,7 +132,7 @@ def test_exposed_objects(tested_module: ModuleType) -> None:
132132
assert not not_exposed, "Objects not exposed:\n" + "\n".join(sorted(not_exposed))
133133

134134

135-
@test_all_modules
135+
@_test_all_modules
136136
def test_unique_names(tested_module: ModuleType) -> None:
137137
"""All internal objects have unique names."""
138138
modulelevel_internal_objects = _get_modulelevel_internal_objects(_get_public_api(tested_module))
@@ -143,7 +143,7 @@ def test_unique_names(tested_module: ModuleType) -> None:
143143
assert not non_unique, "Non-unique names:\n" + "\n".join(str(paths) for paths in non_unique)
144144

145145

146-
@test_all_modules
146+
@_test_all_modules
147147
def test_single_locations(tested_module: ModuleType) -> None:
148148
"""All objects have a single public location."""
149149

@@ -163,7 +163,7 @@ def _public_path(obj: griffe.Object | griffe.Alias) -> bool:
163163
)
164164

165165

166-
@test_all_modules
166+
@_test_all_modules
167167
def test_api_matches_inventory(inventory: Inventory, tested_module: ModuleType) -> None:
168168
"""All public objects are added to the inventory."""
169169
ignore_names = {"__getattr__", "__init__", "__repr__", "__str__", "__post_init__"}
@@ -209,7 +209,7 @@ def test_inventory_matches_api(inventory: Inventory) -> None:
209209
assert not not_in_api, msg.format(paths="\n".join(sorted(not_in_api)))
210210

211211

212-
@test_all_modules
212+
@_test_all_modules
213213
def test_no_module_docstrings_in_internal_api(tested_module: ModuleType) -> None:
214214
"""No module docstrings should be written in our internal API.
215215

0 commit comments

Comments
 (0)