mirror of https://github.com/readrops/Readrops.git
Fix tests once for all...
This commit is contained in:
parent
d51607c12f
commit
5824797aed
|
@ -338,6 +338,8 @@ class NextcloudNewsDataSourceTest : KoinTest {
|
||||||
|
|
||||||
override fun dispatch(request: RecordedRequest): MockResponse {
|
override fun dispatch(request: RecordedRequest): MockResponse {
|
||||||
with(request.path!!) {
|
with(request.path!!) {
|
||||||
|
// important, otherwise test fails and I don't know why
|
||||||
|
println("request: ${request.path}")
|
||||||
return when {
|
return when {
|
||||||
this == "/folders" -> {
|
this == "/folders" -> {
|
||||||
MockResponse.okResponseWithBody(TestUtils.loadResource("services/nextcloudnews/adapters/valid_folder.json"))
|
MockResponse.okResponseWithBody(TestUtils.loadResource("services/nextcloudnews/adapters/valid_folder.json"))
|
||||||
|
|
Loading…
Reference in New Issue