From d8cb9ae3685305b621fd394c18bdf478f0b0355a Mon Sep 17 00:00:00 2001 From: davidoskky Date: Thu, 26 Jan 2023 16:29:57 +0100 Subject: [PATCH] Fix broken tests --- androidApp/src/test/kotlin/RepositoryTest.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/androidApp/src/test/kotlin/RepositoryTest.kt b/androidApp/src/test/kotlin/RepositoryTest.kt index 96ef289..950b07e 100644 --- a/androidApp/src/test/kotlin/RepositoryTest.kt +++ b/androidApp/src/test/kotlin/RepositoryTest.kt @@ -20,6 +20,8 @@ import org.junit.Test private const val BASE_URL = "https://test.com/selfoss/" +private const val USERNAME = "username" + private const val SPOUT = "spouts\\rss\\fulltextrss" private const val IMAGE_URL = "b3aa8a664d08eb15d6ff1db2fa83e0d9.png" @@ -58,12 +60,13 @@ class RepositoryTest { clearAllMocks() every { appSettingsService.getApiVersion() } returns 4 every { appSettingsService.getBaseUrl() } returns BASE_URL + every { appSettingsService.getUserName() } returns USERNAME every { appSettingsService.isItemCachingEnabled() } returns false every { appSettingsService.isUpdateSourcesEnabled() } returns false coEvery { api.apiInformation() } returns StatusAndData( success = true, - data = SelfossModel.ApiInformation("2.19-ba1e8e3", "4.0.0") + data = SelfossModel.ApiInformation("2.19-ba1e8e3", "4.0.0", SelfossModel.ApiConfiguration(false, true)) ) coEvery { api.stats() } returns StatusAndData( success = true,