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