diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-20 16:42:21 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-20 16:42:21 +0100 |
commit | fce28f5be8ba8831eed5ccf482fa2abf5432ee89 (patch) | |
tree | 3f0260c44accb04fa46f1e493bed466fff31c871 /alphabetlearning/payments/tests/test_views.py | |
parent | 791cf758caaf25a9375005bdd7f699e614729823 (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.py | 2 |
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 |