def test_allGoodsSold2(self): sold = SalesProductList() sold.addProductsCSV("./csvs/stock-sales_2016-01-16_to_2016-01-22.csv") # note cost to the company is negative ie: a profit was made assert sold.costAll() == -128717.46 # calculated manually
def test_allGoodsSold(self): sold = SalesProductList() sold.addProductsCSV("./csvs/stock-sales_TEST.csv") # note cost to the company is negative ie: a profit was made assert sold.costAll() == -55 # calculated manually