Skip to content

Commit

Permalink
Fixed tests by adding mock to TestCaseDetailView
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-sigma committed Jan 26, 2024
1 parent bcf1434 commit b04ae89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/open_inwoner/openzaak/tests/test_case_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,12 @@ def _setUpMocks(self, m, use_eindstatus=True):
),
)

# extra mock for fetching single status (#2037)
m.get(
f"{ZAKEN_ROOT}statussen/3da89990-c7fc-476a-ad13-c9023450083c",
json=self.status_new,
)

@patch("open_inwoner.userfeed.hooks.case_status_seen")
@patch("open_inwoner.userfeed.hooks.case_documents_seen")
def test_status_is_retrieved_when_user_logged_in_via_digid(
Expand Down

0 comments on commit b04ae89

Please sign in to comment.