Project

General

Profile

0001-tests-create-directory-for-API-tests-57663.patch

Benjamin Dauvergne, 06 October 2021 10:17 PM

Download (1.26 KB)

View differences:

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%)
tests/test_api.py → tests/api/test_misc.py
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