pytest-invenio is on PyPI so all you need is:
$ pip install pytest-invenio
Normally, you would add it to your package's setup.py
to have it
automatically installed:
setup(
# ...
setup_requires=[
'pytest-runner>=3.0.0,<5',
],
tests_require=[
'pytest-invenio>=1.0.0,<1.1.0',
]
)
Tip: Add the following alias to your setup.cfg
:
[aliases]
test = pytest
In this way, the standard Python way of executing test still works:
$ python setup.py test