diff --git a/auth/src/test/java/org/openedx/auth/presentation/signin/SignInViewModelTest.kt b/auth/src/test/java/org/openedx/auth/presentation/signin/SignInViewModelTest.kt index 5e995998b..52c9e96a7 100644 --- a/auth/src/test/java/org/openedx/auth/presentation/signin/SignInViewModelTest.kt +++ b/auth/src/test/java/org/openedx/auth/presentation/signin/SignInViewModelTest.kt @@ -128,7 +128,8 @@ class SignInViewModelTest { courseId = "", infoType = "", calendarInteractor = calendarInteractor, - calendarPreferences = calendarPreferences + calendarPreferences = calendarPreferences, + authCode = "", ) viewModel.login("", "") coVerify(exactly = 0) { interactor.login(any(), any()) } @@ -165,7 +166,8 @@ class SignInViewModelTest { courseId = "", infoType = "", calendarInteractor = calendarInteractor, - calendarPreferences = calendarPreferences + calendarPreferences = calendarPreferences, + authCode = "", ) viewModel.login("acc@test.o", "") coVerify(exactly = 0) { interactor.login(any(), any()) } @@ -202,7 +204,8 @@ class SignInViewModelTest { courseId = "", infoType = "", calendarInteractor = calendarInteractor, - calendarPreferences = calendarPreferences + calendarPreferences = calendarPreferences, + authCode = "", ) viewModel.login("acc@test.org", "") @@ -238,7 +241,8 @@ class SignInViewModelTest { courseId = "", infoType = "", calendarInteractor = calendarInteractor, - calendarPreferences = calendarPreferences + calendarPreferences = calendarPreferences, + authCode = "", ) viewModel.login("acc@test.org", "ed") @@ -278,7 +282,8 @@ class SignInViewModelTest { courseId = "", infoType = "", calendarInteractor = calendarInteractor, - calendarPreferences = calendarPreferences + calendarPreferences = calendarPreferences, + authCode = "", ) coEvery { interactor.login("acc@test.org", "edx") } returns Unit viewModel.login("acc@test.org", "edx") @@ -318,7 +323,8 @@ class SignInViewModelTest { courseId = "", infoType = "", calendarInteractor = calendarInteractor, - calendarPreferences = calendarPreferences + calendarPreferences = calendarPreferences, + authCode = "", ) coEvery { interactor.login("acc@test.org", "edx") } throws UnknownHostException() viewModel.login("acc@test.org", "edx") @@ -360,7 +366,8 @@ class SignInViewModelTest { courseId = "", infoType = "", calendarInteractor = calendarInteractor, - calendarPreferences = calendarPreferences + calendarPreferences = calendarPreferences, + authCode = "", ) coEvery { interactor.login("acc@test.org", "edx") } throws EdxError.InvalidGrantException() viewModel.login("acc@test.org", "edx") @@ -402,7 +409,8 @@ class SignInViewModelTest { courseId = "", infoType = "", calendarInteractor = calendarInteractor, - calendarPreferences = calendarPreferences + calendarPreferences = calendarPreferences, + authCode = "", ) coEvery { interactor.login("acc@test.org", "edx") } throws IllegalStateException() viewModel.login("acc@test.org", "edx")