forked from p15670423/monkey
UT: Shorten import for authentication resources
This commit is contained in:
parent
b5afbe7218
commit
509716338c
|
@ -4,7 +4,7 @@ from unittest.mock import MagicMock
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from common.utils.exceptions import IncorrectCredentialsError
|
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"
|
USERNAME = "test_user"
|
||||||
PASSWORD = "test_password"
|
PASSWORD = "test_password"
|
||||||
|
|
|
@ -4,7 +4,7 @@ from unittest.mock import MagicMock
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from common.utils.exceptions import AlreadyRegisteredError, InvalidRegistrationCredentialsError
|
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]
|
REGISTRATION_URL = Register.urls[0]
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
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]
|
REGISTRATION_STATUS_URL = RegistrationStatus.urls[0]
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ from tests.monkey_island import OpenErrorFileRepository
|
||||||
from tests.unit_tests.monkey_island.conftest import init_mock_app
|
from tests.unit_tests.monkey_island.conftest import init_mock_app
|
||||||
|
|
||||||
import monkey_island.cc.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
|
import monkey_island.cc.resources.island_mode
|
||||||
from monkey_island.cc.repository import IFileRepository
|
from monkey_island.cc.repository import IFileRepository
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue