#837878 dh-python: support for running test suites with pytest-runner

#837878#5
Date:
2016-09-15 04:55:08 UTC
From:
To:
Dear maintainer,

My package ocrmypdf uses py.test, but it needs pytest-runner to
successfully run the tests if the package is not already installed.
pybuild's current support for invoking py.test fails if ocrmypdf is not
yet installed.

I am currently using this:

    override_dh_auto_test:
        python3 setup.py test

plus a build-dependency on python3-pytest-runner, but I am not sure
whether this is the standard way to invoke pytest-runner.  Some further
discussion is here.[1]

Thanks.

[1] https://github.com/jbarlow83/OCRmyPDF/commit/325cc0beca8f268744779f5aa5e17061626e440f

#837878#10
Date:
2022-02-13 23:17:40 UTC
From:
To:
Hi Sean (2016.09.15_00:55:08_-0400)

tox is a good way to test against an installed version of the module.

SR