Last active
August 17, 2017 20:03
-
-
Save LucasMagnum/82bd93423c567e10128fa81b3b90feb7 to your computer and use it in GitHub Desktop.
Test product list #djangotip02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $ python app/manage.py shell | |
from products.queries import products_list | |
products = products_list() | |
# check the all products were returned | |
assert len(products) == 500 | |
assert list(products[0].keys()) == ['id', 'title', 'category'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment