From 78c89835f5ad3fe345bbe978913436ecbd0518ca Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 6 Oct 2021 21:59:11 +0200 Subject: [PATCH 1/3] tests: create directory for API tests (#57663) --- tests/api/__init__.py | 0 tests/{test_api.py => api/test_misc.py} | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 tests/api/__init__.py rename tests/{test_api.py => api/test_misc.py} (99%) diff --git a/tests/api/__init__.py b/tests/api/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/test_api.py b/tests/api/test_misc.py similarity index 99% rename from tests/test_api.py rename to tests/api/test_misc.py index 30fc0d31..afcf9d95 100644 --- a/tests/test_api.py +++ b/tests/api/test_misc.py @@ -40,8 +40,7 @@ from authentic2.models import Attribute, AttributeValue, AuthorizedRole, Service from authentic2.utils.misc import good_next_url from django_rbac.models import SEARCH_OP from django_rbac.utils import get_ou_model, get_role_model - -from .utils import assert_event, basic_authorization_header, get_link_from_mail, login +from tests.utils import assert_event, basic_authorization_header, get_link_from_mail, login pytestmark = pytest.mark.django_db -- 2.33.0