mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-08-23 15:57:06 -04:00
nox for backend is almost all green now.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
@@ -7,7 +7,7 @@ from collections.abc import AsyncGenerator
|
||||
from typing import Any
|
||||
from typing import List
|
||||
|
||||
import asyncpg
|
||||
import asyncpg # type: ignore[import-untyped]
|
||||
from fastapi import APIRouter
|
||||
from fastapi import HTTPException
|
||||
from fastapi import Query
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Callable
|
||||
from typing import TypedDict
|
||||
from typing import Unpack
|
||||
|
||||
import asyncpg
|
||||
import asyncpg # type: ignore[import-untyped]
|
||||
from sqlalchemy import and_
|
||||
from sqlalchemy import delete
|
||||
from sqlalchemy import func
|
||||
|
||||
@@ -23,7 +23,7 @@ from unittest.mock import MagicMock
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
from dateutil.parser import isoparse
|
||||
from dateutil.parser import isoparse # type: ignore[import-untyped]
|
||||
from sqlalchemy import delete
|
||||
from sqlalchemy import update
|
||||
from sqlalchemy.exc import NoResultFound
|
||||
@@ -607,7 +607,7 @@ async def test_event_publisher_called(
|
||||
booking_create: BookingCreate,
|
||||
sample_booking: Booking,
|
||||
updated_booking: Booking,
|
||||
update_booking_data: BookingUpdateData,
|
||||
booking_update_data: BookingUpdateData,
|
||||
sample_room: Room,
|
||||
) -> None:
|
||||
"""Test that event_publisher is called for booking CUD operations.
|
||||
@@ -620,7 +620,7 @@ async def test_event_publisher_called(
|
||||
booking_create: The BookingCreate object from conftest.
|
||||
sample_booking: The sample Booking object from conftest.
|
||||
updated_booking: The updated Booking object from conftest.
|
||||
update_booking_data: The booking update data dict from conftest.
|
||||
booking_update_data: The booking update data dict from conftest.
|
||||
sample_room: The sample Room object from conftest.
|
||||
|
||||
Asserts:
|
||||
@@ -699,7 +699,7 @@ async def test_event_publisher_called(
|
||||
result = await update_booking( # type: ignore
|
||||
async_session,
|
||||
booking_id,
|
||||
**update_booking_data,
|
||||
**booking_update_data,
|
||||
event_publisher=event_publisher,
|
||||
)
|
||||
event_publisher.assert_awaited()
|
||||
|
||||
Reference in New Issue
Block a user