示例#1
0
def load(request):
    path = os.path.join(os.getcwd(), 'assignment_table_load.xls')

    merchant = load_merchant(path, 3)
    item = load_item(path, 2)
    transaction = load_transaction(path, 0)
    sales = load_sales(path, 1)
    return HttpResponse("okeys")
示例#2
0
 def test_data_found(self):
     """Data found according to search"""
     merchant = load_merchant(self.path, 3)
     item = load_item(self.path, 2)
     transaction = load_transaction(self.path, 0)
     sales = load_sales(self.path, 1)
     assert merchant
     assert item
     assert transaction
     assert sales