diff --git a/tests/test_0_API.py b/tests/test_0_API.py index c712012b..f1d8ae93 100644 --- a/tests/test_0_API.py +++ b/tests/test_0_API.py @@ -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)