mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 02:51:47 +01:00
Update BackupTest.kt
This commit is contained in:
parent
bd35d1229e
commit
00b1b097a7
@ -203,7 +203,7 @@ class BackupTest {
|
|||||||
// Restore manga with fetch observable
|
// Restore manga with fetch observable
|
||||||
val networkManga = getSingleManga("One Piece")
|
val networkManga = getSingleManga("One Piece")
|
||||||
networkManga.description = "This is a description"
|
networkManga.description = "This is a description"
|
||||||
`when`(source.fetchMangaDetailsObservable(jsonManga)).thenReturn(Observable.just(networkManga))
|
`when`(source.fetchMangaDetails(jsonManga)).thenReturn(Observable.just(networkManga))
|
||||||
|
|
||||||
GlobalScope.launch {
|
GlobalScope.launch {
|
||||||
try {
|
try {
|
||||||
@ -250,7 +250,7 @@ class BackupTest {
|
|||||||
// Create list
|
// Create list
|
||||||
val chaptersRemote = ArrayList<Chapter>()
|
val chaptersRemote = ArrayList<Chapter>()
|
||||||
(1..10).mapTo(chaptersRemote) { getSingleChapter("Chapter $it") }
|
(1..10).mapTo(chaptersRemote) { getSingleChapter("Chapter $it") }
|
||||||
`when`(source.fetchChapterListObservable(manga)).thenReturn(Observable.just(chaptersRemote))
|
`when`(source.fetchChapterList(manga)).thenReturn(Observable.just(chaptersRemote))
|
||||||
|
|
||||||
// Call restoreChapterFetchObservable
|
// Call restoreChapterFetchObservable
|
||||||
GlobalScope.launch {
|
GlobalScope.launch {
|
||||||
@ -396,7 +396,6 @@ class BackupTest {
|
|||||||
val track = TrackImpl()
|
val track = TrackImpl()
|
||||||
track.title = manga.title
|
track.title = manga.title
|
||||||
track.manga_id = manga.id!!
|
track.manga_id = manga.id!!
|
||||||
track.remote_id = 1
|
|
||||||
track.sync_id = 1
|
track.sync_id = 1
|
||||||
return track
|
return track
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user