Skip to content

Commit

Permalink
Testing with pytest, router/api_v1 package tests, work in progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmdocua committed Sep 28, 2023
1 parent fd8371b commit 063768b
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions repromon_app/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,25 @@ def fastapi_app() -> FastAPI:
@pytest.fixture
def oauth2_tester1_headers() -> dict:
global _token_tester1
headers = {
return {
"Authorization": f"Bearer {_token_tester1}"
}
return headers


@pytest.fixture
def oauth2_tester2_headers() -> dict:
global _token_tester2
return {
"Authorization": f"Bearer {_token_tester2}"
}


@pytest.fixture
def oauth2_tester3_headers() -> dict:
global _token_tester3
return {
"Authorization": f"Bearer {_token_tester3}"
}


@pytest.fixture
Expand Down

0 comments on commit 063768b

Please sign in to comment.