Ejemplo n.º 1
0
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!"
Ejemplo n.º 2
0
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!"
Ejemplo n.º 3
0
def step_impl(context):
    context.group = FacilityMixins.create_group(facility=context.facility)
Ejemplo n.º 4
0
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))
Ejemplo n.º 5
0
def step_impl(context):
    context.facility = FacilityMixins.create_facility()