aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/tests/test_views.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-20 16:42:21 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-20 16:42:21 +0100
commitfce28f5be8ba8831eed5ccf482fa2abf5432ee89 (patch)
tree3f0260c44accb04fa46f1e493bed466fff31c871 /alphabetlearning/payments/tests/test_views.py
parent791cf758caaf25a9375005bdd7f699e614729823 (diff)
Cart shows items in it; disables buttons if item in basket
- Rough cart icon in navbar - Shows items in cart - Styled dependent on existence - Add to cart buttons disabled if resource in cart, on resource list page and detail page - Throws 404 error if trying add item to cart which has no price - eventually all items will have a price
Diffstat (limited to 'alphabetlearning/payments/tests/test_views.py')
-rw-r--r--alphabetlearning/payments/tests/test_views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alphabetlearning/payments/tests/test_views.py b/alphabetlearning/payments/tests/test_views.py
index 7d0f8b5..3289c12 100644
--- a/alphabetlearning/payments/tests/test_views.py
+++ b/alphabetlearning/payments/tests/test_views.py
@@ -13,7 +13,7 @@ def test_cart_view(client, user):
@pytest.mark.django_db
def test_add_resource_to_cart(client, resource, user):
- url = reverse("payments:add_to_cart", kwargs={"resource_id": resource.id})
+ url = reverse("payments:add_to_basket", kwargs={"resource_id": resource.id})
client.force_login(user)
response = client.get(url)
assert response.status_code == 200