aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/payments/tests/test_views.py
diff options
context:
space:
mode:
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])