From 0ff99eb77ea9e897d8705ba266550ac1dbd03c01 Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Tue, 1 Aug 2023 21:28:08 +0200 Subject: add recommended settings for pytest --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index de5bfd1..cedae45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,3 +4,8 @@ name = "learn_python" [build-system] requires = ["hatchling"] build-backend = "hatchling.build" + +[tool.pytest.ini_options] +addopts = [ + "--import-mode=importlib", +] -- cgit v1.2.3