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
示例#2
0
def step_empty_table(self, model_name):
    get_model(model_name).objects.all().delete()
示例#3
0
def empty_table(self, model_name):
    model_class = get_model(model_name)
    model_class.objects.all().delete()
    reset_sequence(model_class)