From 9985df6b9cf8eb0b77a62db366282b58134c1194 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 8 Jan 2025 20:31:31 +0000 Subject: Add tests for cart functionality and refactor related files - Implement test for verifying that the cart contains the correctly priced resource. - Update `ResourceModelFactory` to remove commented price-related code. - Modify HTML meta description for improved clarity. - Adjust `pyproject.toml` to format settings for clarity and organization. --- alphabetlearning/resources/factories.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'alphabetlearning/resources') diff --git a/alphabetlearning/resources/factories.py b/alphabetlearning/resources/factories.py index 0f0194b..c8d2df4 100644 --- a/alphabetlearning/resources/factories.py +++ b/alphabetlearning/resources/factories.py @@ -37,11 +37,9 @@ class ResourceModelFactory(factory.django.DjangoModelFactory): model = Resource name = factory.Sequence(lambda n: f"Default Resource {n}") - # price = factory.Faker("pydecimal", left_digits=4, right_digits=2, positive=True) thumbnail_filenames = factory.List( [factory.Faker("file_name", extension="jpg") for _ in range(3)] ) - # price_obj = factory.RelatedFactoryList("alphabetlearning.payments.factories.PriceFactory", size=1) resource_type = factory.SubFactory(ResourceTypeModelFactory) main_resource_category = factory.SubFactory(ResourceCategoryModelFactory) subcategories = factory.RelatedFactoryList(ResourceCategoryModelFactory, size=2) -- cgit v1.2.3