diff --git a/tests/conftest.py b/tests/conftest.py index e69de29..c73ddf2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -0,0 +1,14 @@ +import pytest + +from src.service.auth.jwt import Hashes, Jwt + + +@pytest.fixture +def jwt_service()->Jwt: + jwt_service=Jwt() + return jwt_service + +@pytest.fixture +def hash_service()->Hashes: + hash_service=Hashes() + return hash_service \ No newline at end of file diff --git a/tests/integrated/conftest.py b/tests/integrated/conftest.py index 1c07915..d1d0800 100644 --- a/tests/integrated/conftest.py +++ b/tests/integrated/conftest.py @@ -2,7 +2,6 @@ import pytest from fastapi import Request from src.service.auth.auth import CurrentUser -from src.service.auth.jwt import Hashes, Jwt @pytest.fixture @@ -10,16 +9,6 @@ def current_user_service()->CurrentUser: current_user_service=CurrentUser() return current_user_service -@pytest.fixture -def jwt_service()->Jwt: - jwt_service=Jwt() - return jwt_service - -@pytest.fixture -def hash_service()->Hashes: - hash_service=Hashes() - return hash_service - @pytest.fixture def requests(mocker): fake_request = mocker.MagicMock(spec=Request) diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 2061915..139597f 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -1,15 +1,2 @@ -import pytest - -from src.service.auth.jwt import Hashes, Jwt -@pytest.fixture -def jwt_service()->Jwt: - jwt_service=Jwt() - return jwt_service - -@pytest.fixture -def hash_service()->Hashes: - hash_service=Hashes() - return hash_service -