mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2026-04-27 14:00:34 +00:00
chore(intro-skipper): extract report_playback and check_skip_segments to reduce complexity. & other linting requirements
This commit is contained in:
parent
a9b70732d3
commit
e4e0176eba
2 changed files with 73 additions and 67 deletions
|
|
@ -44,10 +44,10 @@ class TestMediaSegmentsConversion:
|
|||
|
||||
assert "Introduction" in segments
|
||||
assert "Credits" in segments
|
||||
assert segments["Introduction"]["Start"] == 42.5
|
||||
assert segments["Introduction"]["End"] == 122.0
|
||||
assert segments["Credits"]["Start"] == 2458.0
|
||||
assert segments["Credits"]["End"] == 2520.0
|
||||
assert segments["Introduction"]["Start"] == pytest.approx(42.5)
|
||||
assert segments["Introduction"]["End"] == pytest.approx(122.0)
|
||||
assert segments["Credits"]["Start"] == pytest.approx(2458.0)
|
||||
assert segments["Credits"]["End"] == pytest.approx(2520.0)
|
||||
|
||||
def test_convert_empty_media_segments(self):
|
||||
response = {"Items": []}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue