mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed: Test Search & VidMoxy, RapidVid extractors (#1219)
This commit is contained in:
parent
63e27c2ea5
commit
30adb1cd9d
13 changed files with 155 additions and 150 deletions
|
@ -4,6 +4,7 @@ import com.lagradost.cloudstream3.*
|
|||
import com.lagradost.cloudstream3.mvvm.logError
|
||||
import kotlinx.coroutines.*
|
||||
import org.junit.Assert
|
||||
import kotlin.random.Random
|
||||
|
||||
object TestingUtils {
|
||||
open class TestResult(val success: Boolean) {
|
||||
|
@ -280,8 +281,8 @@ object TestingUtils {
|
|||
|
||||
// Test Search Results
|
||||
val searchQueries =
|
||||
// Use the first 3 home page results as queries since they are guaranteed to exist
|
||||
(homePageList.take(3).map { it.name } +
|
||||
// Use the random 3 home page results as queries since they are guaranteed to exist
|
||||
(homePageList.shuffled(Random).take(3).map { it.name.split(" ").first() } +
|
||||
// If home page is sparse then use generic search queries
|
||||
listOf("over", "iron", "guy")).take(3)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue