From 41c7aafa65bd184e0ba8699a5d60c52396baa2a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bedna=C5=99=C3=ADk?= <jan.bednarik@gmail.com> Date: Sun, 28 Jan 2018 14:39:25 +0100 Subject: [PATCH] Move tests outside python packages. --- {openlobby/core/tests => tests}/__init__.py | 0 {openlobby/core/tests => tests}/conftest.py | 0 {openlobby/core/tests => tests}/snapshots/__init__.py | 0 .../core/tests => tests}/snapshots/snap_test_management.py | 0 {openlobby/core/tests => tests}/snapshots/snap_test_schema.py | 0 {openlobby/core/tests => tests}/test_auth.py | 2 +- {openlobby/core/tests => tests}/test_paginator.py | 2 +- {openlobby/core/tests => tests}/test_sanitizers.py | 2 +- {openlobby/core/tests => tests}/test_schema.py | 2 +- 9 files changed, 4 insertions(+), 4 deletions(-) rename {openlobby/core/tests => tests}/__init__.py (100%) rename {openlobby/core/tests => tests}/conftest.py (100%) rename {openlobby/core/tests => tests}/snapshots/__init__.py (100%) rename {openlobby/core/tests => tests}/snapshots/snap_test_management.py (100%) rename {openlobby/core/tests => tests}/snapshots/snap_test_schema.py (100%) rename {openlobby/core/tests => tests}/test_auth.py (97%) rename {openlobby/core/tests => tests}/test_paginator.py (98%) rename {openlobby/core/tests => tests}/test_sanitizers.py (91%) rename {openlobby/core/tests => tests}/test_schema.py (99%) diff --git a/openlobby/core/tests/__init__.py b/tests/__init__.py similarity index 100% rename from openlobby/core/tests/__init__.py rename to tests/__init__.py diff --git a/openlobby/core/tests/conftest.py b/tests/conftest.py similarity index 100% rename from openlobby/core/tests/conftest.py rename to tests/conftest.py diff --git a/openlobby/core/tests/snapshots/__init__.py b/tests/snapshots/__init__.py similarity index 100% rename from openlobby/core/tests/snapshots/__init__.py rename to tests/snapshots/__init__.py diff --git a/openlobby/core/tests/snapshots/snap_test_management.py b/tests/snapshots/snap_test_management.py similarity index 100% rename from openlobby/core/tests/snapshots/snap_test_management.py rename to tests/snapshots/snap_test_management.py diff --git a/openlobby/core/tests/snapshots/snap_test_schema.py b/tests/snapshots/snap_test_schema.py similarity index 100% rename from openlobby/core/tests/snapshots/snap_test_schema.py rename to tests/snapshots/snap_test_schema.py diff --git a/openlobby/core/tests/test_auth.py b/tests/test_auth.py similarity index 97% rename from openlobby/core/tests/test_auth.py rename to tests/test_auth.py index 0659a66..aa665a5 100644 --- a/openlobby/core/tests/test_auth.py +++ b/tests/test_auth.py @@ -3,7 +3,7 @@ import time import jwt import pytest -from ..auth import ( +from openlobby.core.auth import ( get_login_attempt_expiration_time, get_session_expiration_time, create_access_token, diff --git a/openlobby/core/tests/test_paginator.py b/tests/test_paginator.py similarity index 98% rename from openlobby/core/tests/test_paginator.py rename to tests/test_paginator.py index a75daa7..8a8d08c 100644 --- a/openlobby/core/tests/test_paginator.py +++ b/tests/test_paginator.py @@ -1,6 +1,6 @@ import pytest -from ..api.paginator import ( +from openlobby.core.api.paginator import ( PER_PAGE, encode_cursor, decode_cursor, diff --git a/openlobby/core/tests/test_sanitizers.py b/tests/test_sanitizers.py similarity index 91% rename from openlobby/core/tests/test_sanitizers.py rename to tests/test_sanitizers.py index 513feb3..74ed272 100644 --- a/openlobby/core/tests/test_sanitizers.py +++ b/tests/test_sanitizers.py @@ -1,6 +1,6 @@ import pytest -from ..api.sanitizers import strip_all_tags, extract_text +from openlobby.core.api.sanitizers import strip_all_tags, extract_text @pytest.mark.parametrize('input, text', [ diff --git a/openlobby/core/tests/test_schema.py b/tests/test_schema.py similarity index 99% rename from openlobby/core/tests/test_schema.py rename to tests/test_schema.py index 8b0be3e..4bf9e08 100644 --- a/openlobby/core/tests/test_schema.py +++ b/tests/test_schema.py @@ -1,7 +1,7 @@ import pytest from graphql_relay import to_global_id -from ..models import OpenIdClient, User +from openlobby.core.models import OpenIdClient, User @pytest.mark.django_db -- GitLab