Skip to main content

credit_registration_config

Function credit_registration_config 

Source
fn credit_registration_config(
    course_code: &str,
    with_product: bool,
) -> CreditRegistrationSeed
Expand description

Turns the module on and points it at the mock’s realisation for the same course code.

with_product is per module because open_university_product_access_tokens is keyed on the product id globally: two modules sharing one would let a spec that breaks the token refresh break another spec’s enrolment link.