fix/test-doda-y-s3

This commit is contained in:
2026-05-06 15:09:45 -06:00
parent 451a3078fb
commit 62dded0b61

View File

@@ -53,7 +53,8 @@ def _print_client(db_session: Session, test_tenant) -> TestClient:
@patch.object(
doda_routes,
"validate_access_to_resource",
lambda db, company_id, current_user: int(current_user["tenant_id"]),
lambda db, company_id, current_user, required_permissions=None, require_all=True: int(
current_user["tenant_id"]
)
def test_print_uses_s3_cache_when_fingerprint_matches(
db_session: Session, test_tenant, monkeypatch: pytest.MonkeyPatch
@@ -98,7 +99,8 @@ def test_print_uses_s3_cache_when_fingerprint_matches(
@patch.object(
doda_routes,
"validate_access_to_resource",
lambda db, company_id, current_user: int(current_user["tenant_id"]),
lambda db, company_id, current_user, required_permissions=None, require_all=True: int(
current_user["tenant_id"]
)
def test_print_422_without_digital_seal(
db_session: Session, test_tenant, monkeypatch: pytest.MonkeyPatch