mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-10 13:23:19 +00:00
Before making changes to the update-channels-from-git.sh file, I wanted to have everything stored in such a way that it made logical sense where it went. Anything that goes to the root folder is in "main-dir", channel specific files are in "channel-dir", and the files for both sections are in "both-dir". These directories will eventually be referenced in the new version of "update-channels-from-git.sh".
17 lines
468 B
Python
17 lines
468 B
Python
import pytest
|
|
import datetime
|
|
|
|
@pytest.mark.parametrize("commercial, expected", [
|
|
(["1", "1501900754", "3", "001 - Kit_Kat_Commercial_-_Give_Me_A_Break_1988", "30890", "/library/metadata/3854"], 35890)
|
|
])
|
|
def test_pad_the_commercial_dur(commercial, expected):
|
|
|
|
commercial_as_list = list(commercial)
|
|
|
|
commercial_as_list[4] = int(commercial_as_list[4]) + (5 * 1000)
|
|
|
|
assert int(commercial_as_list[4]) == expected
|
|
|
|
def test_inject_commercials():
|
|
|
|
pass |