def step_confirm_table(self, model_name): model_class = get_model(model_name) for data in guess_types(self.hashes): has_row = model_class.objects.filter(**data).exists() assert has_row
def step_empty_table(self, model_name): get_model(model_name).objects.all().delete()
def empty_table(self, model_name): model_class = get_model(model_name) model_class.objects.all().delete() reset_sequence(model_class)