]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci: attempt to fix tests not running due to problems with imports
authorVasek Sraier <git@vakabus.cz>
Thu, 18 Nov 2021 21:33:05 +0000 (22:33 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 8 Apr 2022 14:17:53 +0000 (16:17 +0200)
manager/pyproject.toml

index baa4fbd778e6d4db9537551f0de2cc3d40e61665..094551b7dc1c51ca2ac36838ba681dc69826847b 100644 (file)
@@ -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"}