BlueBrain / MorphIO

A python and C++ library for reading and writing neuronal morphologies
https://morphio.readthedocs.io
Apache License 2.0
26 stars 22 forks source link

Prevent `pytest` from picking up pybind11 tests. #451

Closed 1uc closed 1 year ago

1uc commented 1 year ago

When simply running pytest after a performing pip install -e . I get the following errors:

binds/python/pybind11/tests/conftest.py:16: in <module>
    import pybind11_tests
E   ModuleNotFoundError: No module named 'pybind11_tests'

which means it's picking up the pybind11 tests and fails. This PR proposes to limit the folders pytest considers to tests.

1uc commented 1 year ago

The PR shows two ways of solving the issue either via pyproject.toml or with a pytest.ini file.