Tiers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user