Fix HtmlParser tests

This commit is contained in:
Shinokuni 2020-10-25 12:58:29 +01:00
parent 86c58b9280
commit 537490252b
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.readrops.app
import com.readrops.api.utils.AuthInterceptor
import com.readrops.app.utils.HtmlParser
import com.readrops.app.addfeed.ParsingResult
import junit.framework.TestCase
@ -15,7 +16,8 @@ class HtmlParserTest {
@get:Rule
val koinTestRule = KoinTestRule.create {
modules(module {
single { OkHttpClient() }
single { OkHttpClient.Builder().addInterceptor(get<AuthInterceptor>()).build() }
single { AuthInterceptor() }
})
}