Files
pseudo-channel/development_scripts/test_commercial_injection.py
mutto233 ea70ed38ce Directory Revamp
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".
2018-06-29 16:27:29 -04:00

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