def impl(context): context.rating_user = user = FacilityMixins.create_student() assert FacilityUser.objects.count() != 0, "User was not be created!" context.rating_text = "My fantastic rating" context.rating = rating = ContentRating( content_kind="Video", content_id="abc123", user=user, text=context.rating_text, quality=1, difficulty=3 ) rating.save() assert ContentRating.objects.count() != 0, "No ContentRating objects exist to be exported!"
def impl(context): context.rating_user = user = FacilityMixins.create_student() assert FacilityUser.objects.count() != 0, "User was not be created!" context.rating_text = "My fantastic rating" context.rating = rating = ContentRating(content_kind="Video", content_id="abc123", user=user, text=context.rating_text, quality=1, difficulty=3) rating.save() assert ContentRating.objects.count( ) != 0, "No ContentRating objects exist to be exported!"
def step_impl(context): context.group = FacilityMixins.create_group(facility=context.facility)
def step_impl(context): context.facility = FacilityMixins.create_facility() signup_url = "%s%s%s" % (reverse('facility_user_signup'), "?&facility=", context.facility.id) context.browser.get(build_url(context, signup_url))
def step_impl(context): context.facility = FacilityMixins.create_facility()