Fix tests once for all...

This commit is contained in:
Shinokuni 2024-10-09 15:48:14 +02:00
parent d51607c12f
commit 5824797aed
1 changed files with 2 additions and 0 deletions

View File

@ -338,6 +338,8 @@ class NextcloudNewsDataSourceTest : KoinTest {
override fun dispatch(request: RecordedRequest): MockResponse {
with(request.path!!) {
// important, otherwise test fails and I don't know why
println("request: ${request.path}")
return when {
this == "/folders" -> {
MockResponse.okResponseWithBody(TestUtils.loadResource("services/nextcloudnews/adapters/valid_folder.json"))