Add Remember flag to Products

This commit is contained in:
2022-12-24 09:38:23 -07:00
parent 66777cfabc
commit bc4f01756d
8 changed files with 215 additions and 18 deletions

View File

@@ -76,3 +76,13 @@ def test_product_model_same_store_fails(session):
with pytest.raises(IntegrityError):
session.commit()
@pytest.mark.unit
def test_product_model_remembers_by_default(session):
"""Test that the Product defaults to remembering."""
p = Product(name='Eggs', category='Dairy')
session.add(p)
session.commit()
assert p.remember is True