Skip to content

Commit

Permalink
List ignored methods explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherioszisis committed Oct 11, 2024
1 parent a5f8956 commit 5eec364
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_0_API.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ def test_doc_exists():
morphio.mut.Section,
morphio.mut.Soma,
]
ignored_methods = {
"_pybind11_conduit_v1_"
}
for cls in classes:
public_methods = (method for method in dir(cls) if not method.startswith("_"))
public_methods = (
method for method in dir(cls)
if not (method.startswith("__") or method in ignored_methods)
)
for method in public_methods:
assert getattr(cls, method).__doc__, \
'Public method {} of class {} is not documented !'.format(method, cls)
Expand Down

0 comments on commit 5eec364

Please sign in to comment.