Exemple #1
0
def step_impl(context):
    name = 0
    while Facility.objects.count() < 2:
        context.facility = CreateFacilityMixin.create_facility(name=str(name))
        name += 1
Exemple #2
0
def step_impl(context):
    name = 0
    while Facility.objects.count() < 2:
        context.facility = CreateFacilityMixin.create_facility(name=str(name))
        name += 1
Exemple #3
0
def step_impl(context):
    if Facility.objects.count() != 0:
        for f in Facility.objects.all():
            f.soft_delete()
    context.facility = CreateFacilityMixin.create_facility()
Exemple #4
0
def step_impl(context):
    if Facility.objects.count() != 0:
        for f in Facility.objects.all():
            f.soft_delete()
    context.facility = CreateFacilityMixin.create_facility()