Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
ianliuwk1019 committed Sep 24, 2024
1 parent 7c98719 commit e0e8f03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/backend/testspg/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import pytest
import starlette
import testcontainers.compose
from api.app.schemas.fam_user import FamUserSchema
from Crypto.PublicKey import RSA
from fastapi.testclient import TestClient
from mock_alchemy.mocking import UnifiedAlchemyMagicMock
Expand All @@ -27,6 +26,7 @@
enforce_bceid_terms_conditions_guard, get_current_requester,
get_verified_target_user)
from api.app.schemas import RequesterSchema, TargetUserSchema
from api.app.schemas.fam_user import FamUserSchema
from testspg.constants import (ACCESS_GRANT_FOM_DEV_CR_IDIR,
FOM_DEV_ADMIN_ROLE, FOM_TEST_ADMIN_ROLE,
TEST_CREATOR)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,7 @@ def test_store_end_user_audit_history_revoke_role_client_search_error(
+ f"Unknown forest client number {mock_delete_record.role.client_number.forest_client_number} for "
+ f"scoped permission {mock_delete_record.role.role_name}."
)
assert (
str(e.value.detail.get("description")).find(error_msg)
!= -1
)
assert str(e.value.detail.get("description")).find(error_msg) != -1
assert forest_client_integration_fn_spy.call_count == 1
# find the audit record and verify
audit_record = db_pg_session.query(FamPrivilegeChangeAudit).filter(
Expand Down

0 comments on commit e0e8f03

Please sign in to comment.