Closed kayrahbear closed 7 years ago
Created required tests 3 and 4. Created a SetUp class for testing purposes.
READY
Modified Order model to make payment_type into a nullable foreign key constraint.
Wrote tests to verify that the product detail view displays the correct product's information
ALL
models.py tests.py
Follow installation steps outlined in README.md
git fetch git checkout kb-unit-testing-hooray ./damnit_django.sh python manage.py test
git fetch
git checkout kb-unit-testing-hooray
./damnit_django.sh
python manage.py test
Name of test test_product_detail_view_returns_correct_product test_product_detail_view_has_all_information
test_product_detail_view_returns_correct_product
test_product_detail_view_has_all_information
Fail/ Pass Pass (x2)
How to run in command line python manage.py test
Looks good!
Looks good! Great job girl!! 🎂
1. TITLE:
Created required tests 3 and 4. Created a SetUp class for testing purposes.
2. STATUS:
READY
3. DESCRIPTION:
Modified Order model to make payment_type into a nullable foreign key constraint.
Wrote tests to verify that the product detail view displays the correct product's information
4. RELATED TICKETS:
ALL
5. FILES CHANGED:
models.py tests.py
6. STEPS TO RUN PROJECT:
Installation Steps
Follow installation steps outlined in README.md
Run steps
git fetch
git checkout kb-unit-testing-hooray
./damnit_django.sh
python manage.py test
8. TESTING THE CODE:
Name of test
test_product_detail_view_returns_correct_product
test_product_detail_view_has_all_information
Fail/ Pass Pass (x2)
How to run in command line
python manage.py test
For reference: Bangazon Employee Handbook: Pull Requests