aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/payments/tests/test_views.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-09 17:21:11 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-09 17:21:11 +0100
commit677c935fdc3b083a9940a1b2f280cb1ccdbc03bd (patch)
treed9ecde9f2b9dc7db923438120b9031dc2b9b6301 /pyblackbird_cc/payments/tests/test_views.py
parent082d6a7ee8bece150c04840474b18aa791f6300d (diff)
wip: working on tests for adding resource to a cart
Diffstat (limited to 'pyblackbird_cc/payments/tests/test_views.py')
-rw-r--r--pyblackbird_cc/payments/tests/test_views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyblackbird_cc/payments/tests/test_views.py b/pyblackbird_cc/payments/tests/test_views.py
index e80a2d9..0b469b5 100644
--- a/pyblackbird_cc/payments/tests/test_views.py
+++ b/pyblackbird_cc/payments/tests/test_views.py
@@ -9,3 +9,8 @@ def test_cart_view(client, user):
response = client.get(url)
assert response.status_code == 200
assert "My basket" in str(response.content)
+
+
+@pytest.mark.django_db
+def test_add_resource_to_cart(resource, user):
+ url = reverse("payments:add_to_cart", args=[resource.pk])