Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/unit/app/endpoints/test_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@

import pytest
from fastapi import Request
from pytest_mock import MockerFixture

from app.endpoints.root import root_endpoint_handler
from authentication.interface import AuthTuple
from tests.unit.utils.auth_helpers import mock_authorization_resolvers


@pytest.mark.asyncio
async def test_root_endpoint(mocker):
async def test_root_endpoint(mocker: MockerFixture) -> None:
"""Test the root endpoint handler."""
mock_authorization_resolvers(mocker)

auth = ("test_user", "token", {})
auth = AuthTuple(("test_user_id", "test_user_name", False, "token"))
request = Request(
scope={
"type": "http",
Expand Down
Loading