diff options
author | Matthew Lemon <y@yulqen.org> | 2025-01-08 20:31:31 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2025-01-08 20:31:31 +0000 |
commit | 9985df6b9cf8eb0b77a62db366282b58134c1194 (patch) | |
tree | 0f36a35b18195b7bebede15cd3e1ad7add02d4af /alphabetlearning/resources | |
parent | d2b3baf2db9740629a1779aaa2ab923f0bc7bf45 (diff) |
- 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.
Diffstat (limited to 'alphabetlearning/resources')
-rw-r--r-- | alphabetlearning/resources/factories.py | 2 |
1 files changed, 0 insertions, 2 deletions
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) |