Pacify Linter
This commit is contained in:
@@ -31,17 +31,17 @@ def test_product_model_init(session):
|
||||
def test_product_model_can_add_location(session):
|
||||
"""Test that a Location can be added to a Product."""
|
||||
p = Product(name='Eggs', category='Dairy')
|
||||
l = ProductLocation(product=p, store='Pavilions', aisle='Back Wall')
|
||||
loc = ProductLocation(product=p, store='Pavilions', aisle='Back Wall')
|
||||
|
||||
session.add(p)
|
||||
session.add(l)
|
||||
session.add(loc)
|
||||
session.commit()
|
||||
|
||||
assert l.aisle == 'Back Wall'
|
||||
assert l.bin is None
|
||||
assert l.product == p
|
||||
|
||||
assert l in p.locations
|
||||
assert loc.aisle == 'Back Wall'
|
||||
assert loc.bin is None
|
||||
assert loc.product == p
|
||||
|
||||
assert loc in p.locations
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
|
||||
Reference in New Issue
Block a user