From 509716338c0988d082923cae5f1378ec65598dd6 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 5 Aug 2022 08:42:54 +0200 Subject: [PATCH] UT: Shorten import for authentication resources --- .../monkey_island/cc/resources/auth/test_authenticate.py | 2 +- .../unit_tests/monkey_island/cc/resources/auth/test_register.py | 2 +- .../monkey_island/cc/resources/auth/test_registration_status.py | 2 +- monkey/tests/unit_tests/monkey_island/cc/resources/conftest.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_authenticate.py b/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_authenticate.py index 6d5af8a94..ab0184262 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_authenticate.py +++ b/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_authenticate.py @@ -4,7 +4,7 @@ from unittest.mock import MagicMock import pytest from common.utils.exceptions import IncorrectCredentialsError -from monkey_island.cc.resources.auth.authenticate import Authenticate +from monkey_island.cc.resources.auth import Authenticate USERNAME = "test_user" PASSWORD = "test_password" diff --git a/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_register.py b/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_register.py index aee054f84..a759c2fc3 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_register.py +++ b/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_register.py @@ -4,7 +4,7 @@ from unittest.mock import MagicMock import pytest from common.utils.exceptions import AlreadyRegisteredError, InvalidRegistrationCredentialsError -from monkey_island.cc.resources.auth.register import Register +from monkey_island.cc.resources.auth import Register REGISTRATION_URL = Register.urls[0] diff --git a/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_registration_status.py b/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_registration_status.py index 350590df8..76d6406a9 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_registration_status.py +++ b/monkey/tests/unit_tests/monkey_island/cc/resources/auth/test_registration_status.py @@ -2,7 +2,7 @@ from unittest.mock import MagicMock import pytest -from monkey_island.cc.resources.auth.registration_status import RegistrationStatus +from monkey_island.cc.resources.auth import RegistrationStatus REGISTRATION_STATUS_URL = RegistrationStatus.urls[0] diff --git a/monkey/tests/unit_tests/monkey_island/cc/resources/conftest.py b/monkey/tests/unit_tests/monkey_island/cc/resources/conftest.py index 4fb2e7be3..1b914b3e0 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/resources/conftest.py +++ b/monkey/tests/unit_tests/monkey_island/cc/resources/conftest.py @@ -7,7 +7,7 @@ from tests.monkey_island import OpenErrorFileRepository from tests.unit_tests.monkey_island.conftest import init_mock_app import monkey_island.cc.app -import monkey_island.cc.resources.auth.authenticate +import monkey_island.cc.resources.auth import monkey_island.cc.resources.island_mode from monkey_island.cc.repository import IFileRepository