d/rules: update test arguments

This commit is contained in:
Diego M. Rodriguez 2021-08-31 12:26:57 +02:00
parent fdc21bac02
commit ebe8e48994
No known key found for this signature in database
GPG key ID: D9CB228B6CD14B1F

8
debian/rules vendored
View file

@ -2,8 +2,10 @@
export PYBUILD_NAME=pytest-mock
export PYBUILD_BEFORE_TEST=cp -r {dir}/*.egg-info {build_dir}
export PYBUILD_TEST_ARGS={dir}/test_pytest_mock.py
# Add the pytest-mock egg to the build dir, so pytest can find it when
# running the tests.
export PYBUILD_BEFORE_TEST=cp -r {dir}/src/*.egg-info {build_dir}
export PYBUILD_TEST_ARGS={dir}/tests
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*.egg-info
%:
@ -11,4 +13,4 @@ export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*.egg-info
override_dh_auto_clean:
dh_auto_clean
rm -f _pytest_mock_version.py
rm -f src/pytest_mock/_version.py