From 71d958db0f9e874f74358b76a9fb1847076c20c3 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 5 Sep 2022 15:43:15 +0300 Subject: Force pytest to use "importlib" import-mode to be able to run Having "--import-mode=importlib" enables pytest to find the imports in our tests; otherwise we get import errors. * pyproject.toml: New pytest conf file. --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..2c70d6c3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,4 @@ +[tool.pytest.ini_options] +addopts = [ + "--import-mode=importlib", +] -- cgit v1.2.3