def setUp(self): self.fnum = 10 self.days = 10 self.startname = "test_display" self.files = [(self.startname + str(i) + main.SHEETEXT) for i in range(self.fnum)] self.bal = 0 for index, name in enumerate(self.files): money = (index + 1) * 100 self.bal += money fakeDict = td.fakeDict(self.days, money) with open(name, "w") as f: f.write(jh.dict_to_json(fakeDict))
def setUp(self): self.fnum = 10 self.days = 10 self.startname = 'test_display' self.files = [(self.startname + str(i) + main.SHEETEXT) for i in \ range(self.fnum)] self.bal = 0 for index, name in enumerate(self.files): money = (index + 1) * 100 self.bal += money fakeDict = td.fakeDict(self.days, money) with open(name, 'w') as f: f.write(jh.dict_to_json(fakeDict))
def setUp(self): fakeDict = self.fakeDict = td.fakeDict() with open(td.fakeSheet, 'w') as f: f.write(jh.dict_to_json(fakeDict))