conftest fix
This commit is contained in:
@@ -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
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user