mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-10 17:30:31 +00:00
Simple Codebase Improvement (#7132)
* feat: it was added a string variable to avoid replication one. * Update LocalPlaylistManagerTest.kt * Update LocalPlaylistManagerTest.kt * Update LocalPlaylistManagerTest.kt Co-authored-by: Jhon Camilo Baron Berdugo <jbaron@mutualser.org>
This commit is contained in:
parent
7e26748dc4
commit
f36fd2f7b2
@ -43,10 +43,11 @@ class LocalPlaylistManagerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun createPlaylist() {
|
fun createPlaylist() {
|
||||||
|
val NEWPIPE_URL = "https://newpipe.net/"
|
||||||
val stream = StreamEntity(
|
val stream = StreamEntity(
|
||||||
serviceId = 1, url = "https://newpipe.net/", title = "title",
|
serviceId = 1, url = NEWPIPE_URL, title = "title",
|
||||||
streamType = StreamType.VIDEO_STREAM, duration = 1, uploader = "uploader",
|
streamType = StreamType.VIDEO_STREAM, duration = 1, uploader = "uploader",
|
||||||
uploaderUrl = "https://newpipe.net/"
|
uploaderUrl = NEWPIPE_URL
|
||||||
)
|
)
|
||||||
|
|
||||||
val result = manager.createPlaylist("name", listOf(stream))
|
val result = manager.createPlaylist("name", listOf(stream))
|
||||||
|
Loading…
Reference in New Issue
Block a user