From: Vasek Sraier Date: Thu, 18 Nov 2021 21:33:05 +0000 (+0100) Subject: ci: attempt to fix tests not running due to problems with imports X-Git-Tag: v6.0.0a1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68d64e5aa796a55e8c8d17e3042b0e5cb1e35afd;p=thirdparty%2Fknot-resolver.git ci: attempt to fix tests not running due to problems with imports --- diff --git a/manager/pyproject.toml b/manager/pyproject.toml index baa4fbd77..094551b7d 100644 --- a/manager/pyproject.toml +++ b/manager/pyproject.toml @@ -39,7 +39,7 @@ pylint = "^2.11.1" run = { cmd = "scripts/run", help = "Run the manager" } run-debug = { cmd = "scripts/run-debug", help = "Run the manager under debugger" } docs = { cmd = "scripts/docs", help = "Create HTML documentation" } -test = { cmd = "pytest --cov=knot_resolver_manager --show-capture=all tests/unit/", help = "Run tests" } +test = { shell = "env PYTHONPATH=. pytest --cov=knot_resolver_manager --show-capture=all tests/unit/", help = "Run tests" } check = { cmd = "scripts/codecheck", help = "Run static code analysis" } format = { shell = "black knot_resolver_manager/ tests/ scripts/; isort .", help = "Run code formatter" } fixdeps = { shell = "poetry install; npm install; npm update", help = "Install/update dependencies according to configuration files"}