From 29a2c373fdec32858cef1b4c72bd4d39b7e83dda Mon Sep 17 00:00:00 2001 From: Ben Shiller Date: Thu, 23 Dec 2021 04:20:09 +0000 Subject: [PATCH] Fix unit test? --- my_homepage/test/__init__.py | 0 {tests => my_homepage/test}/test_website.py | 2 +- setup.cfg | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 my_homepage/test/__init__.py rename {tests => my_homepage/test}/test_website.py (88%) diff --git a/my_homepage/test/__init__.py b/my_homepage/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_website.py b/my_homepage/test/test_website.py similarity index 88% rename from tests/test_website.py rename to my_homepage/test/test_website.py index 49686bb..6e3ba6b 100644 --- a/tests/test_website.py +++ b/my_homepage/test/test_website.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import pytest -from my_homepage import create_app +from .. import create_app @pytest.fixture def app(): diff --git a/setup.cfg b/setup.cfg index 0b7f9f7..f282880 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [tool:pytest] -testpaths = tests +testpaths = my_homepage/test [coverage:run] branch = True