From 126a3a828debaa9983e34ac82306077d4c645b20 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 25 Dec 2021 14:49:43 +0100 Subject: Run unit tests with pytest when building Debian package By default, pybuild uses the following command to run automatic unit tests: $ python3 -m unittest discover Unfortunately, it does not work with us since unittest is unable to discover our tests. Instead, we rely on pytest which succeeds so far. Signed-off-by: Olivier Gayot --- debian/rules | 1 + 1 file changed, 1 insertion(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 1c29eac..3938ed4 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,7 @@ # This file was automatically generated by stdeb 0.8.2 at # Thu, 18 Aug 2016 12:48:06 +0000 export PYBUILD_NAME=swiftstory +export PYBUILD_TEST_PYTEST=1 %: dh $@ --with python3 --buildsystem=pybuild -- cgit v1.2.3