Skip to content

Commit 7ed0c78

Browse files
committed
tests: fix tests
1 parent 57259d9 commit 7ed0c78

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

auth/src/test/java/org/openedx/auth/presentation/signin/SignInViewModelTest.kt

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ class SignInViewModelTest {
128128
courseId = "",
129129
infoType = "",
130130
calendarInteractor = calendarInteractor,
131-
calendarPreferences = calendarPreferences
131+
calendarPreferences = calendarPreferences,
132+
authCode = "",
132133
)
133134
viewModel.login("", "")
134135
coVerify(exactly = 0) { interactor.login(any(), any()) }
@@ -165,7 +166,8 @@ class SignInViewModelTest {
165166
courseId = "",
166167
infoType = "",
167168
calendarInteractor = calendarInteractor,
168-
calendarPreferences = calendarPreferences
169+
calendarPreferences = calendarPreferences,
170+
authCode = "",
169171
)
170172
viewModel.login("[email protected]", "")
171173
coVerify(exactly = 0) { interactor.login(any(), any()) }
@@ -202,7 +204,8 @@ class SignInViewModelTest {
202204
courseId = "",
203205
infoType = "",
204206
calendarInteractor = calendarInteractor,
205-
calendarPreferences = calendarPreferences
207+
calendarPreferences = calendarPreferences,
208+
authCode = "",
206209
)
207210
viewModel.login("[email protected]", "")
208211

@@ -238,7 +241,8 @@ class SignInViewModelTest {
238241
courseId = "",
239242
infoType = "",
240243
calendarInteractor = calendarInteractor,
241-
calendarPreferences = calendarPreferences
244+
calendarPreferences = calendarPreferences,
245+
authCode = "",
242246
)
243247
viewModel.login("[email protected]", "ed")
244248

@@ -278,7 +282,8 @@ class SignInViewModelTest {
278282
courseId = "",
279283
infoType = "",
280284
calendarInteractor = calendarInteractor,
281-
calendarPreferences = calendarPreferences
285+
calendarPreferences = calendarPreferences,
286+
authCode = "",
282287
)
283288
coEvery { interactor.login("[email protected]", "edx") } returns Unit
284289
viewModel.login("[email protected]", "edx")
@@ -318,7 +323,8 @@ class SignInViewModelTest {
318323
courseId = "",
319324
infoType = "",
320325
calendarInteractor = calendarInteractor,
321-
calendarPreferences = calendarPreferences
326+
calendarPreferences = calendarPreferences,
327+
authCode = "",
322328
)
323329
coEvery { interactor.login("[email protected]", "edx") } throws UnknownHostException()
324330
viewModel.login("[email protected]", "edx")
@@ -360,7 +366,8 @@ class SignInViewModelTest {
360366
courseId = "",
361367
infoType = "",
362368
calendarInteractor = calendarInteractor,
363-
calendarPreferences = calendarPreferences
369+
calendarPreferences = calendarPreferences,
370+
authCode = "",
364371
)
365372
coEvery { interactor.login("[email protected]", "edx") } throws EdxError.InvalidGrantException()
366373
viewModel.login("[email protected]", "edx")
@@ -402,7 +409,8 @@ class SignInViewModelTest {
402409
courseId = "",
403410
infoType = "",
404411
calendarInteractor = calendarInteractor,
405-
calendarPreferences = calendarPreferences
412+
calendarPreferences = calendarPreferences,
413+
authCode = "",
406414
)
407415
coEvery { interactor.login("[email protected]", "edx") } throws IllegalStateException()
408416
viewModel.login("[email protected]", "edx")

0 commit comments

Comments
 (0)