diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-09 17:21:11 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-09 17:21:11 +0100 |
commit | 677c935fdc3b083a9940a1b2f280cb1ccdbc03bd (patch) | |
tree | d9ecde9f2b9dc7db923438120b9031dc2b9b6301 /pyblackbird_cc/payments/tests/test_views.py | |
parent | 082d6a7ee8bece150c04840474b18aa791f6300d (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.py | 5 |
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]) |