def test_product_add(): print("Testing product insert..") db.updateProduct(Product(code="POOLBL",name="PoolBall",price=Decimal(9.80),in_stock=999)) t = bl.getProduct(code="POOLBL") assert(t is not None)
def setProduct(product): """ here admin caller validation """ db.updateProduct(product)