mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
#1659 Autoload next video - fix test initialisation
This commit is contained in:
parent
f9f05b0a95
commit
1840686919
@ -364,7 +364,9 @@
|
||||
<inspection_tool class="ReplaceSizeCheckWithIsNotEmpty" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="ReplaceSizeZeroCheckWithIsEmpty" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="ReplaceStringFormatWithLiteral" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="ReplaceToStringWithStringTemplate" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="ReplaceToStringWithStringTemplate" enabled="true" level="ERROR" enabled_by_default="true">
|
||||
<scope name="Tests" level="INFORMATION" enabled="true" />
|
||||
</inspection_tool>
|
||||
<inspection_tool class="ReplaceToWithInfixForm" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="ReplaceWithEnumMap" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
<inspection_tool class="ReplaceWithOperatorAssignment" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user