Replaced config auth with db auth

This commit is contained in:
Jonas Linter
2025-12-02 16:43:56 +01:00
parent 7ff3c44747
commit 03aac27233
7 changed files with 83 additions and 30 deletions

View File

@@ -17,6 +17,7 @@ from alpine_bits_python.alpinebits_server import AlpineBitsServer
from alpine_bits_python.api import app
from alpine_bits_python.const import HttpStatusCode
from alpine_bits_python.db import Base, Hotel, RoomAvailability
from alpine_bits_python.hotel_service import hash_password
def build_request_xml(body: str, include_unique_id: bool = True) -> str:
@@ -118,7 +119,7 @@ def seed_hotel_if_missing(client: TestClient):
hotel_id="HOTEL123",
hotel_name="Integration Hotel",
username="testuser",
password_hash="integration-hash",
password_hash=hash_password("testpass"),
created_at=datetime.now(UTC),
updated_at=datetime.now(UTC),
is_active=True,