diff --git a/.idea/inspectionProfiles/kiwixAndroidInspections.xml b/.idea/inspectionProfiles/kiwixAndroidInspections.xml index 2f014f407..49dd2a8e3 100644 --- a/.idea/inspectionProfiles/kiwixAndroidInspections.xml +++ b/.idea/inspectionProfiles/kiwixAndroidInspections.xml @@ -364,7 +364,9 @@ - + + + diff --git a/core/src/test/java/org/kiwix/kiwixmobile/core/StorageObserverTest.kt b/core/src/test/java/org/kiwix/kiwixmobile/core/StorageObserverTest.kt index 8e1a95e04..4c5f4a949 100644 --- a/core/src/test/java/org/kiwix/kiwixmobile/core/StorageObserverTest.kt +++ b/core/src/test/java/org/kiwix/kiwixmobile/core/StorageObserverTest.kt @@ -18,6 +18,7 @@ package org.kiwix.kiwixmobile.core +import android.net.Uri import io.mockk.clearAllMocks import io.mockk.every import io.mockk.mockk @@ -58,6 +59,8 @@ class StorageObserverTest { setScheduler(Schedulers.trampoline()) mockkStatic(CoreApp::class) every { CoreApp.getInstance().packageName } returns "pkg" + mockkStatic(Uri::class) + every { Uri.parse(any()).toString() } returns "pkg" zimFileReader = mockk() }