Moodscape is an art e-commerce platform where users can browse, purchase, and discover unique art pieces. The platform provides a secure checkout, order management, and personalized user experiences.
As a developer,
I want to set up pytest for backend testing
so that I can ensure the reliability and correctness of my backend code through automated tests.
Acceptance Criteria
pytest is installed and configured in the project environment.
A tests directory is created in the Django project to house all test files.
A sample test file is created in the tests directory to verify the setup.
The test runner is configured to automatically discover and run tests located in the tests directory.
Documentation is added to the project README explaining how to run the tests using pytest.
Tasks
[x] Install pytest in the project environment.
[x] Configure pytest in the pytest.ini file.
[x] Create a tests directory in the Django project.
[x] Write a sample test case in the tests directory.
[x] Update project README with instructions for running tests using pytest. commit
As a developer, I want to set up pytest for backend testing so that I can ensure the reliability and correctness of my backend code through automated tests.
Acceptance Criteria
tests
directory is created in the Django project to house all test files.tests
directory to verify the setup.tests
directory.Tasks
pytest.ini
file.tests
directory in the Django project.tests
directory.