Skip to content

Commit

Permalink
Add coverage re #11114
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored and chiatt committed Aug 6, 2024
1 parent f24f987 commit 753ded5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/utils/test_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ def test_compatibility(self):
call_command("check")

# Mock an incompatible version requirement.
with mock.patch("arches.apps.requires", lambda app_name: ["arches==0.0.1"]):
with self.assertRaisesMessage(
SystemCheckError, "Incompatible arches requirement"
):
with mock.patch(
"arches.apps.requires",
lambda app_name: ["arches-for-x==0.0.1", "arches==1.0.1"],
):
with self.assertRaisesMessage(SystemCheckError, "arches==1.0.1"):
call_command("check")

0 comments on commit 753ded5

Please sign in to comment.