This commit is contained in:
2026-10-27 19:25:46 -04:00
parent aa18f6b895
commit 27a6305b22
9 changed files with 76 additions and 38 deletions
+3 -1
View File
@@ -104,7 +104,9 @@ class SHKeeperTests(TestCase):
def test_invoice_is_account_scoped_and_get_never_calls_provider(self):
invoice = self.prepared()
with patch("members.shkeeper.request") as request:
self.assertContains(self.client.get(f"/members/crypto/invoice/{invoice.pk}/"), "bc1-test-wallet")
response = self.client.get(f"/members/crypto/invoice/{invoice.pk}/")
self.assertContains(response, "bc1-test-wallet")
self.assertContains(response, "Bronze invoice")
request.assert_not_called()
self.login_other()
self.assertEqual(self.client.get(f"/members/crypto/invoice/{invoice.pk}/").status_code, 404)