From 62dded0b6198dff5883e711d6f3279ee65ae2172 Mon Sep 17 00:00:00 2001 From: hreyes Date: Wed, 6 May 2026 15:09:45 -0600 Subject: [PATCH] fix/test-doda-y-s3 --- backend/tests/unit/general_catalogs/doda/test_doda_print.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/tests/unit/general_catalogs/doda/test_doda_print.py b/backend/tests/unit/general_catalogs/doda/test_doda_print.py index a8098ef5..22abac7e 100644 --- a/backend/tests/unit/general_catalogs/doda/test_doda_print.py +++ b/backend/tests/unit/general_catalogs/doda/test_doda_print.py @@ -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