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/control | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'debian/control') diff --git a/debian/control b/debian/control index 7c5e8b8..04158c6 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,12 @@ Source: swiftstory Maintainer: Olivier Gayot Section: python Priority: optional -Build-Depends: python3-setuptools, dh-python, python3, debhelper (>= 9) +Build-Depends: python3-setuptools, + dh-python, + debhelper (>= 9), + python3-pytest, + python3-websockets, + python3 Standards-Version: 3.9.1 Package: swiftstory -- cgit v1.2.3