conftest fix

This commit is contained in:
2026-07-30 15:54:43 +03:00
parent 439d57554c
commit 3705ac4f0c
3 changed files with 14 additions and 24 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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