diff --git a/services/headless-lms/models/src/course_instances.rs b/services/headless-lms/models/src/course_instances.rs index d25fb3b8d84..4e6bb45e794 100644 --- a/services/headless-lms/models/src/course_instances.rs +++ b/services/headless-lms/models/src/course_instances.rs @@ -964,7 +964,7 @@ mod test { #[tokio::test] async fn gets_course_average_duration_with_empty_database() { - insert_data!(:tx, :user, :org, :course, :instance); + insert_data!(:tx, :user, :org, :course); let duration = get_course_average_duration(tx.as_mut(), course) .await .unwrap(); diff --git a/services/headless-lms/models/src/library/progressing.rs b/services/headless-lms/models/src/library/progressing.rs index a19b6961bed..461b8c14de4 100644 --- a/services/headless-lms/models/src/library/progressing.rs +++ b/services/headless-lms/models/src/library/progressing.rs @@ -865,7 +865,7 @@ mod tests { #[tokio::test] async fn grants_automatic_completion_but_no_prerequisite_for_default_module() { insert_data!(:tx); - let (mut tx, user, course, instance, default_module, _submodule_1, _submodule_2) = + let (mut tx, user, course, _instance, default_module, _submodule_1, _submodule_2) = create_test_data(tx).await; update_automatic_completion_status_and_grant_if_eligible( tx.as_mut(), @@ -889,7 +889,7 @@ mod tests { #[tokio::test] async fn grants_automatic_completion_but_no_prerequisite_for_submodule() { insert_data!(:tx); - let (mut tx, user, course, instance, _default_module, submodule_1, _submodule_2) = + let (mut tx, user, course, _instance, _default_module, submodule_1, _submodule_2) = create_test_data(tx).await; update_automatic_completion_status_and_grant_if_eligible( tx.as_mut(), @@ -914,7 +914,7 @@ mod tests { async fn grants_automatic_completion_for_eligible_submodule_when_completing_default_module() { insert_data!(:tx); - let (mut tx, user, course, instance, default_module, submodule_1, submodule_2) = + let (mut tx, user, course, _instance, default_module, submodule_1, submodule_2) = create_test_data(tx).await; update_automatic_completion_status_and_grant_if_eligible( tx.as_mut(), diff --git a/services/headless-lms/server/tests/study_registry_test.rs b/services/headless-lms/server/tests/study_registry_test.rs index d1563d774ce..14ee603fee0 100644 --- a/services/headless-lms/server/tests/study_registry_test.rs +++ b/services/headless-lms/server/tests/study_registry_test.rs @@ -142,7 +142,7 @@ async fn insert_data( ) .await .unwrap(); - let (course, _, instance, course_module) = + let (course, _, _instance, course_module) = headless_lms_models::library::content_management::create_new_course( conn, PKeyPolicy::Fixed(CreateNewCourseFixedIds {