From 677c935fdc3b083a9940a1b2f280cb1ccdbc03bd Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 9 Oct 2024 17:21:11 +0100 Subject: wip: working on tests for adding resource to a cart --- pyblackbird_cc/payments/tests/test_views.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pyblackbird_cc/payments/tests') 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]) -- cgit v1.2.3