1919
2020
2121TESTED_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
124124def 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
136136def 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
147147def 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
167167def 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
213213def 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