Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Jan 24, 2025
1 parent ebde3e4 commit 37643a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion services/headless-lms/models/src/course_instances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions services/headless-lms/models/src/library/progressing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand All @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion services/headless-lms/server/tests/study_registry_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 37643a8

Please sign in to comment.