def setUp(self): self.hasher_id = 'test_id' self.name = 'test_hasher' self.kennel = { 'kennel_id': 'test_kennel_1', 'name': 'Test Kennel 1', 'acronym': 'TK1H3' } self.user = '******' if HasherDataModel.exists(): HasherDataModel.delete_table() HasherDataModel.create_table(read_capacity_units=1, write_capacity_units=1, wait=True)
def setUp(self): if KennelDataModel.exists(): KennelDataModel.delete_table() KennelDataModel.create_table(read_capacity_units=1, write_capacity_units=1, wait=True) self.hasher_id = 'test_id' self.hash_name = 'Testy Cream' self.mother_kennel = KennelLogicModel.create('Test Kennel 1', 'TK1H3') if HasherDataModel.exists(): HasherDataModel.delete_table() HasherDataModel.create_table(read_capacity_units=1, write_capacity_units=1, wait=True)