Closed bartczak-pa closed 2 months ago
This pull request addresses issues with views and tests in the recipes app. The main changes include refactoring the TestRecipeDetailView class, updating the CategoryRecipeListView, and fixing some redundancies in the views.py file.
Change | Details | Files |
---|---|---|
Refactored TestRecipeDetailView class |
|
recipes/tests/test_views.py |
Updated CategoryRecipeListView in views.py |
|
recipes/views.py |
Improved test coverage and error handling |
|
recipes/tests/test_views.py |
Summary by Sourcery
Refactor the test suite to focus on RecipeDetailView, fixing issues with test setup and handling of non-existent entities. Enhance test coverage by adding parameterized tests and ensuring proper exception handling.
Bug Fixes:
Enhancements: