From d04e8c99e73e9a2c79e5e689627dbf8e8a785ad0 Mon Sep 17 00:00:00 2001 From: Spoked Date: Thu, 9 May 2024 01:27:07 -0400 Subject: [PATCH] feat: update season and episode tests. --- poetry.lock | 112 ++++++++++++------------ pyproject.toml | 2 +- tests/test_episodes.py | 191 +++++++++++++++++++++++++++++++++++------ tests/test_season.py | 135 ++++++++++++++++++++--------- 4 files changed, 317 insertions(+), 123 deletions(-) diff --git a/poetry.lock b/poetry.lock index 4742675..62e50dc 100644 --- a/poetry.lock +++ b/poetry.lock @@ -157,63 +157,63 @@ files = [ [[package]] name = "coverage" -version = "7.5.0" +version = "7.5.1" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.8" files = [ - {file = "coverage-7.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:432949a32c3e3f820af808db1833d6d1631664d53dd3ce487aa25d574e18ad1c"}, - {file = "coverage-7.5.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2bd7065249703cbeb6d4ce679c734bef0ee69baa7bff9724361ada04a15b7e3b"}, - {file = "coverage-7.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bbfe6389c5522b99768a93d89aca52ef92310a96b99782973b9d11e80511f932"}, - {file = "coverage-7.5.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:39793731182c4be939b4be0cdecde074b833f6171313cf53481f869937129ed3"}, - {file = "coverage-7.5.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:85a5dbe1ba1bf38d6c63b6d2c42132d45cbee6d9f0c51b52c59aa4afba057517"}, - {file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:357754dcdfd811462a725e7501a9b4556388e8ecf66e79df6f4b988fa3d0b39a"}, - {file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:a81eb64feded34f40c8986869a2f764f0fe2db58c0530d3a4afbcde50f314880"}, - {file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:51431d0abbed3a868e967f8257c5faf283d41ec882f58413cf295a389bb22e58"}, - {file = "coverage-7.5.0-cp310-cp310-win32.whl", hash = "sha256:f609ebcb0242d84b7adeee2b06c11a2ddaec5464d21888b2c8255f5fd6a98ae4"}, - {file = "coverage-7.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:6782cd6216fab5a83216cc39f13ebe30adfac2fa72688c5a4d8d180cd52e8f6a"}, - {file = "coverage-7.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e768d870801f68c74c2b669fc909839660180c366501d4cc4b87efd6b0eee375"}, - {file = "coverage-7.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:84921b10aeb2dd453247fd10de22907984eaf80901b578a5cf0bb1e279a587cb"}, - {file = "coverage-7.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:710c62b6e35a9a766b99b15cdc56d5aeda0914edae8bb467e9c355f75d14ee95"}, - {file = "coverage-7.5.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c379cdd3efc0658e652a14112d51a7668f6bfca7445c5a10dee7eabecabba19d"}, - {file = "coverage-7.5.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fea9d3ca80bcf17edb2c08a4704259dadac196fe5e9274067e7a20511fad1743"}, - {file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:41327143c5b1d715f5f98a397608f90ab9ebba606ae4e6f3389c2145410c52b1"}, - {file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:565b2e82d0968c977e0b0f7cbf25fd06d78d4856289abc79694c8edcce6eb2de"}, - {file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:cf3539007202ebfe03923128fedfdd245db5860a36810136ad95a564a2fdffff"}, - {file = "coverage-7.5.0-cp311-cp311-win32.whl", hash = "sha256:bf0b4b8d9caa8d64df838e0f8dcf68fb570c5733b726d1494b87f3da85db3a2d"}, - {file = "coverage-7.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:9c6384cc90e37cfb60435bbbe0488444e54b98700f727f16f64d8bfda0b84656"}, - {file = "coverage-7.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:fed7a72d54bd52f4aeb6c6e951f363903bd7d70bc1cad64dd1f087980d309ab9"}, - {file = "coverage-7.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:cbe6581fcff7c8e262eb574244f81f5faaea539e712a058e6707a9d272fe5b64"}, - {file = "coverage-7.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad97ec0da94b378e593ef532b980c15e377df9b9608c7c6da3506953182398af"}, - {file = "coverage-7.5.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bd4bacd62aa2f1a1627352fe68885d6ee694bdaebb16038b6e680f2924a9b2cc"}, - {file = "coverage-7.5.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:adf032b6c105881f9d77fa17d9eebe0ad1f9bfb2ad25777811f97c5362aa07f2"}, - {file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:4ba01d9ba112b55bfa4b24808ec431197bb34f09f66f7cb4fd0258ff9d3711b1"}, - {file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:f0bfe42523893c188e9616d853c47685e1c575fe25f737adf473d0405dcfa7eb"}, - {file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a9a7ef30a1b02547c1b23fa9a5564f03c9982fc71eb2ecb7f98c96d7a0db5cf2"}, - {file = "coverage-7.5.0-cp312-cp312-win32.whl", hash = "sha256:3c2b77f295edb9fcdb6a250f83e6481c679335ca7e6e4a955e4290350f2d22a4"}, - {file = "coverage-7.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:427e1e627b0963ac02d7c8730ca6d935df10280d230508c0ba059505e9233475"}, - {file = "coverage-7.5.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9dd88fce54abbdbf4c42fb1fea0e498973d07816f24c0e27a1ecaf91883ce69e"}, - {file = "coverage-7.5.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a898c11dca8f8c97b467138004a30133974aacd572818c383596f8d5b2eb04a9"}, - {file = "coverage-7.5.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:07dfdd492d645eea1bd70fb1d6febdcf47db178b0d99161d8e4eed18e7f62fe7"}, - {file = "coverage-7.5.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d3d117890b6eee85887b1eed41eefe2e598ad6e40523d9f94c4c4b213258e4a4"}, - {file = "coverage-7.5.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6afd2e84e7da40fe23ca588379f815fb6dbbb1b757c883935ed11647205111cb"}, - {file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:a9960dd1891b2ddf13a7fe45339cd59ecee3abb6b8326d8b932d0c5da208104f"}, - {file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:ced268e82af993d7801a9db2dbc1d2322e786c5dc76295d8e89473d46c6b84d4"}, - {file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:e7c211f25777746d468d76f11719e64acb40eed410d81c26cefac641975beb88"}, - {file = "coverage-7.5.0-cp38-cp38-win32.whl", hash = "sha256:262fffc1f6c1a26125d5d573e1ec379285a3723363f3bd9c83923c9593a2ac25"}, - {file = "coverage-7.5.0-cp38-cp38-win_amd64.whl", hash = "sha256:eed462b4541c540d63ab57b3fc69e7d8c84d5957668854ee4e408b50e92ce26a"}, - {file = "coverage-7.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d0194d654e360b3e6cc9b774e83235bae6b9b2cac3be09040880bb0e8a88f4a1"}, - {file = "coverage-7.5.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:33c020d3322662e74bc507fb11488773a96894aa82a622c35a5a28673c0c26f5"}, - {file = "coverage-7.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbdf2cae14a06827bec50bd58e49249452d211d9caddd8bd80e35b53cb04631"}, - {file = "coverage-7.5.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3235d7c781232e525b0761730e052388a01548bd7f67d0067a253887c6e8df46"}, - {file = "coverage-7.5.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2de4e546f0ec4b2787d625e0b16b78e99c3e21bc1722b4977c0dddf11ca84e"}, - {file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:4d0e206259b73af35c4ec1319fd04003776e11e859936658cb6ceffdeba0f5be"}, - {file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:2055c4fb9a6ff624253d432aa471a37202cd8f458c033d6d989be4499aed037b"}, - {file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:075299460948cd12722a970c7eae43d25d37989da682997687b34ae6b87c0ef0"}, - {file = "coverage-7.5.0-cp39-cp39-win32.whl", hash = "sha256:280132aada3bc2f0fac939a5771db4fbb84f245cb35b94fae4994d4c1f80dae7"}, - {file = "coverage-7.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:c58536f6892559e030e6924896a44098bc1290663ea12532c78cef71d0df8493"}, - {file = "coverage-7.5.0-pp38.pp39.pp310-none-any.whl", hash = "sha256:2b57780b51084d5223eee7b59f0d4911c31c16ee5aa12737c7a02455829ff067"}, - {file = "coverage-7.5.0.tar.gz", hash = "sha256:cf62d17310f34084c59c01e027259076479128d11e4661bb6c9acb38c5e19bb8"}, + {file = "coverage-7.5.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0884920835a033b78d1c73b6d3bbcda8161a900f38a488829a83982925f6c2e"}, + {file = "coverage-7.5.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:39afcd3d4339329c5f58de48a52f6e4e50f6578dd6099961cf22228feb25f38f"}, + {file = "coverage-7.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4a7b0ceee8147444347da6a66be737c9d78f3353b0681715b668b72e79203e4a"}, + {file = "coverage-7.5.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a9ca3f2fae0088c3c71d743d85404cec8df9be818a005ea065495bedc33da35"}, + {file = "coverage-7.5.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5fd215c0c7d7aab005221608a3c2b46f58c0285a819565887ee0b718c052aa4e"}, + {file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:4bf0655ab60d754491004a5efd7f9cccefcc1081a74c9ef2da4735d6ee4a6223"}, + {file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:61c4bf1ba021817de12b813338c9be9f0ad5b1e781b9b340a6d29fc13e7c1b5e"}, + {file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:db66fc317a046556a96b453a58eced5024af4582a8dbdc0c23ca4dbc0d5b3146"}, + {file = "coverage-7.5.1-cp310-cp310-win32.whl", hash = "sha256:b016ea6b959d3b9556cb401c55a37547135a587db0115635a443b2ce8f1c7228"}, + {file = "coverage-7.5.1-cp310-cp310-win_amd64.whl", hash = "sha256:df4e745a81c110e7446b1cc8131bf986157770fa405fe90e15e850aaf7619bc8"}, + {file = "coverage-7.5.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:796a79f63eca8814ca3317a1ea443645c9ff0d18b188de470ed7ccd45ae79428"}, + {file = "coverage-7.5.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4fc84a37bfd98db31beae3c2748811a3fa72bf2007ff7902f68746d9757f3746"}, + {file = "coverage-7.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6175d1a0559986c6ee3f7fccfc4a90ecd12ba0a383dcc2da30c2b9918d67d8a3"}, + {file = "coverage-7.5.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fc81d5878cd6274ce971e0a3a18a8803c3fe25457165314271cf78e3aae3aa2"}, + {file = "coverage-7.5.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:556cf1a7cbc8028cb60e1ff0be806be2eded2daf8129b8811c63e2b9a6c43bca"}, + {file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:9981706d300c18d8b220995ad22627647be11a4276721c10911e0e9fa44c83e8"}, + {file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d7fed867ee50edf1a0b4a11e8e5d0895150e572af1cd6d315d557758bfa9c057"}, + {file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:ef48e2707fb320c8f139424a596f5b69955a85b178f15af261bab871873bb987"}, + {file = "coverage-7.5.1-cp311-cp311-win32.whl", hash = "sha256:9314d5678dcc665330df5b69c1e726a0e49b27df0461c08ca12674bcc19ef136"}, + {file = "coverage-7.5.1-cp311-cp311-win_amd64.whl", hash = "sha256:5fa567e99765fe98f4e7d7394ce623e794d7cabb170f2ca2ac5a4174437e90dd"}, + {file = "coverage-7.5.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b6cf3764c030e5338e7f61f95bd21147963cf6aa16e09d2f74f1fa52013c1206"}, + {file = "coverage-7.5.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2ec92012fefebee89a6b9c79bc39051a6cb3891d562b9270ab10ecfdadbc0c34"}, + {file = "coverage-7.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:16db7f26000a07efcf6aea00316f6ac57e7d9a96501e990a36f40c965ec7a95d"}, + {file = "coverage-7.5.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:beccf7b8a10b09c4ae543582c1319c6df47d78fd732f854ac68d518ee1fb97fa"}, + {file = "coverage-7.5.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8748731ad392d736cc9ccac03c9845b13bb07d020a33423fa5b3a36521ac6e4e"}, + {file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7352b9161b33fd0b643ccd1f21f3a3908daaddf414f1c6cb9d3a2fd618bf2572"}, + {file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:7a588d39e0925f6a2bff87154752481273cdb1736270642aeb3635cb9b4cad07"}, + {file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:68f962d9b72ce69ea8621f57551b2fa9c70509af757ee3b8105d4f51b92b41a7"}, + {file = "coverage-7.5.1-cp312-cp312-win32.whl", hash = "sha256:f152cbf5b88aaeb836127d920dd0f5e7edff5a66f10c079157306c4343d86c19"}, + {file = "coverage-7.5.1-cp312-cp312-win_amd64.whl", hash = "sha256:5a5740d1fb60ddf268a3811bcd353de34eb56dc24e8f52a7f05ee513b2d4f596"}, + {file = "coverage-7.5.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:e2213def81a50519d7cc56ed643c9e93e0247f5bbe0d1247d15fa520814a7cd7"}, + {file = "coverage-7.5.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:5037f8fcc2a95b1f0e80585bd9d1ec31068a9bcb157d9750a172836e98bc7a90"}, + {file = "coverage-7.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c3721c2c9e4c4953a41a26c14f4cef64330392a6d2d675c8b1db3b645e31f0e"}, + {file = "coverage-7.5.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ca498687ca46a62ae590253fba634a1fe9836bc56f626852fb2720f334c9e4e5"}, + {file = "coverage-7.5.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0cdcbc320b14c3e5877ee79e649677cb7d89ef588852e9583e6b24c2e5072661"}, + {file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:57e0204b5b745594e5bc14b9b50006da722827f0b8c776949f1135677e88d0b8"}, + {file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:8fe7502616b67b234482c3ce276ff26f39ffe88adca2acf0261df4b8454668b4"}, + {file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:9e78295f4144f9dacfed4f92935fbe1780021247c2fabf73a819b17f0ccfff8d"}, + {file = "coverage-7.5.1-cp38-cp38-win32.whl", hash = "sha256:1434e088b41594baa71188a17533083eabf5609e8e72f16ce8c186001e6b8c41"}, + {file = "coverage-7.5.1-cp38-cp38-win_amd64.whl", hash = "sha256:0646599e9b139988b63704d704af8e8df7fa4cbc4a1f33df69d97f36cb0a38de"}, + {file = "coverage-7.5.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4cc37def103a2725bc672f84bd939a6fe4522310503207aae4d56351644682f1"}, + {file = "coverage-7.5.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:fc0b4d8bfeabd25ea75e94632f5b6e047eef8adaed0c2161ada1e922e7f7cece"}, + {file = "coverage-7.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d0a0f5e06881ecedfe6f3dd2f56dcb057b6dbeb3327fd32d4b12854df36bf26"}, + {file = "coverage-7.5.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9735317685ba6ec7e3754798c8871c2f49aa5e687cc794a0b1d284b2389d1bd5"}, + {file = "coverage-7.5.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d21918e9ef11edf36764b93101e2ae8cc82aa5efdc7c5a4e9c6c35a48496d601"}, + {file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c3e757949f268364b96ca894b4c342b41dc6f8f8b66c37878aacef5930db61be"}, + {file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:79afb6197e2f7f60c4824dd4b2d4c2ec5801ceb6ba9ce5d2c3080e5660d51a4f"}, + {file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:d1d0d98d95dd18fe29dc66808e1accf59f037d5716f86a501fc0256455219668"}, + {file = "coverage-7.5.1-cp39-cp39-win32.whl", hash = "sha256:1cc0fe9b0b3a8364093c53b0b4c0c2dd4bb23acbec4c9240b5f284095ccf7981"}, + {file = "coverage-7.5.1-cp39-cp39-win_amd64.whl", hash = "sha256:dde0070c40ea8bb3641e811c1cfbf18e265d024deff6de52c5950677a8fb1e0f"}, + {file = "coverage-7.5.1-pp38.pp39.pp310-none-any.whl", hash = "sha256:6537e7c10cc47c595828b8a8be04c72144725c383c4702703ff4e42e44577312"}, + {file = "coverage-7.5.1.tar.gz", hash = "sha256:54de9ef3a9da981f7af93eafde4ede199e0846cd819eb27c88e2b712aae9708c"}, ] [package.extras] @@ -342,13 +342,13 @@ dev = ["importlib-metadata", "tox"] [[package]] name = "pyright" -version = "1.1.360" +version = "1.1.362" description = "Command line wrapper for pyright" optional = false python-versions = ">=3.7" files = [ - {file = "pyright-1.1.360-py3-none-any.whl", hash = "sha256:7637f75451ac968b7cf1f8c51cfefb6d60ac7d086eb845364bc8ac03a026efd7"}, - {file = "pyright-1.1.360.tar.gz", hash = "sha256:784ddcda9745e9f5610483d7b963e9aa8d4f50d7755a9dffb28ccbeb27adce32"}, + {file = "pyright-1.1.362-py3-none-any.whl", hash = "sha256:969957cff45154d8a45a4ab1dae5bdc8223d8bd3c64654fa608ab3194dfff319"}, + {file = "pyright-1.1.362.tar.gz", hash = "sha256:6a477e448d4a07a6a0eab58b2a15a1bbed031eb3169fa809edee79cca168d83a"}, ] [package.dependencies] diff --git a/pyproject.toml b/pyproject.toml index 9772858..a7e512d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "parsett" -version = "0.2.1" +version = "0.2.3" description = "PTT" authors = ["Dreu LaVelle "] license = "MIT" diff --git a/tests/test_episodes.py b/tests/test_episodes.py index a2519e0..3c92b80 100644 --- a/tests/test_episodes.py +++ b/tests/test_episodes.py @@ -11,43 +11,182 @@ def parser(): return p @pytest.mark.parametrize("release_name, expected_episode", [ + ("(Hi10)_Re_Zero_Shin_Henshuu-ban_-_02v2_(720p)_(DDY)_(72006E34).mkv", [2]), + ("004 - Male Unbonding - [DVD].avi", [4]), + ("02 The Invitation.mp4", [2]), + ("09 Movie - Dragon Ball Z - Bojack Unbound", []), + ("2-06. Девичья сила.mkv", [6]), + ("3-Nen D-Gumi Glass no Kamen - 13 [480p]", [13]), + ("4-13 Cursed (HD)", [13]), + ("4-13 Cursed (HD).m4v", [13]), + ("22-7 (Season 1) (1080p)(HEVC x265 10bit)(Eng-Subs)-Judas[TGx] ⭐", []), + ("24 - S01E04 - x264 - dilpill.mkv", [4]), + ("24 - S01xE03.mp4", [3]), + ("24.Legacy.S01E05.720p.HEVC.x265-MeGusta", [5]), + ("30 M0N3D4S ESP T01XE08.mkv", [8]), + ("102 - The Invitation.avi", [102]), + ("321 - Family Guy Viewer Mail #1.avi", [321]), + ("512 - Airport '07.avi", [512]), + ("523 23.mp4", [523]), + ("611-612 - Desperate Measures, Means & Ends.mp4", [611, 612]), + ("All of Us Are Dead . 2022 . S01 EP #1.2.mkv", [2]), + ("Anubis saison 01 episode 38 tvrip FR", [38]), ("Archer.S02.1080p.BluRay.DTSMA.AVC.Remux", []), - ("The Simpsons S01E01 1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole", [1]), - ("[F-D] Fairy Tail Season 1 - 6 + Extras [480P][Dual-Audio]", []), - ("House MD All Seasons (1-8) 720p Ultra-Compressed", []), + ("BBC Indian Ocean with Simon Reeve 5of6 Sri Lanka to Bangladesh.avi", [5]), + ("black-ish.S05E02.1080p..x265.10bit.EAC3.6.0-Qman[UTR].mkv", [2]), ("Bleach 10º Temporada - 215 ao 220 - [DB-BR]", list(range(215, 221))), - ("Lost.[Perdidos].6x05.HDTV.XviD.[www.DivxTotaL.com]", [5]), - ("4-13 Cursed (HD)", [13]), - ("Dragon Ball Z Movie - 09 - Bojack Unbound - 1080p BluRay x264 DTS 5.1 -DDR", []), # Correct. This should not match, its a movie. - ("The Simpsons S28E21 720p HDTV x264-AVS", [21]), + ("Blue Bloods - Temporada 11 [HDTV 720p][Cap.1103][AC3 5.1 Castellano][www.PCTmix.com].mkv", [1103]), + ("BoJack Horseman [06x01-08 of 16] (2019-2020) WEB-DLRip 720p", [1, 2, 3, 4, 5, 6, 7, 8]), ("breaking.bad.s01e01.720p.bluray.x264-reward", [1]), - ("Dragon Ball Super S01 E23 French 1080p HDTV H264-Kesni", [23]), - ("The.Witcher.S01.07.2019.Dub.AVC.ExKinoRay.mkv", [7]), - ("Vikings.s02.09.AVC.tahiy.mkv", [9]), - ("The Twilight Zone 1985 S01E23a Shadow Play.mp4", [23]), - ("Desperate_housewives_S03E02Le malheur aime la compagnie.mkv", [2]), - ("Mash S10E01b Thats Show Biz Part 2 1080p H.264 (moviesbyrizzo upload).mp4", [1]), - ("The Twilight Zone 1985 S01E22c The Library.mp4", [22]), + ("Breaking Bad S02 03.mkv", [3]), + ("Breaking Bad S03e01-13 (1080p Ita Eng Spa h265 SubS) 2ndREPACK byMe7alh", list(range(1, 14))), + ("Cestovatelé_S02E04_11_27.mkv", [4]), + ("Chernobyl.S01E01.1.23.45.mkv", [1]), + ("Chernobyl E02 1 23 45.mp4", [2]), + ("clny.3x11m720p.es[www.planetatorrent.com].mkv", [11]), + ("DARKER THAN BLACK - S00E00.mkv", [0]), + ("Das Boot Miniseries Original Uncut-Reevel Cd2 Of 3.avi", [2]), ("Desperate.Housewives.S0615.400p.WEB-DL.Rus.Eng.avi", [15]), + ("Desperate Housewives - Episode 1.22 - Goodbye for now.avi", [22]), + ("Desperate_housewives_S03E02Le malheur aime la compagnie.mkv", [2]), + ("Discovery. Парни с Юкона / Yokon Men [06х01-08] (2017) HDTVRip от GeneralFilm | P1", [1, 2, 3, 4, 5, 6, 7, 8]), + ("Doctor.Who.2005.8x11.Dark.Water.720p.HDTV.x264-FoV", [11]), ("Doctor.Who.2005.8x11.Dark.Water.720p.HDTV.x264-FoV.mkv", [11]), - ("Anubis saison 01 episode 38 tvrip FR", [38]), + ("Dragon Ball Super S01 E23 French 1080p HDTV H264-Kesni", [23]), + ("Dragon Ball Super S05E53 - Ep.129.mkv", [53]), + ("Dragon Ball Z Movie - 09 - Bojack Unbound - 1080p", []), + ("Dragon Ball Z Movie - 09 - Bojack Unbound - 1080p BluRay x264 DTS 5.1 -DDR", []), # Correct. This should not match, its a movie. + ("Dragon Ball [5.134] Preliminary Peril.mp4", [134]), + ("DShaun.Micallefs.MAD.AS.HELL.S10E03.576p.x642-YADNUM.mkv", [3]), + ("E5.mkv", [5]), + ("El Chema Temporada 1 Capitulo 25", [25]), + ("Food Wars! Shokugeki No Souma S4 - 11 (1080p)(HEVC x265 10bit)", [11]), + ("Friends - [7x23-24] - The One with Monica and Chandler's Wedding + Audio Commentary.mkv", [23, 24]), + ("Friends - [8x18] - The One In Massapequa.mkv", [18]), + ("Friends.S07E20.The.One.With.Rachel's.Big.Kiss.720p.BluRay.2CH.x265.HEVC-PSA.mkv", [20]), + ("Game.of.Thrones.S01.e01-02.2160p.UHD.BluRay.x265-Morpheus", list(range(1, 3))), + ("Hogan's Heroes - 516 - Get Fit or Go Flight - 1-09-70.divx", [516]), + ("House MD All Seasons (1-8) 720p Ultra-Compressed", []), + ("Iron-Fist-2017-01_13-F.avi", [13]), + ("Joker.2019.PROPER.mHD.10Bits.1080p.BluRay.DD5.1.x265-TMd.mkv", []), + ("Juego de Tronos - Temp.2 [ALTA DEFINICION 720p][Cap.209][Spanish].mkv", [209]), + ("Kyoukai no Rinne (TV) 3rd Season - 23 [1080p]", [23]), ("Le Monde Incroyable de Gumball - Saison 5 Ep 14 - L'extérieur", [14]), + ("Lgds.of.Tmrow-02_17.F.avi", [17]), + ("Lost.[Perdidos].6x05.HDTV.XviD.[www.DivxTotaL.com]", [5]), + ("MARATHON EPISODES/Orphan Black S3 Eps.05-08.mp4", [5, 6, 7, 8]), + ("Marvel's.Agents.of.S.H.I.E.L.D.S02E01-03.Shadows.1080p.WEB-DL.DD5.1", [1, 2, 3]), + ("Mash S10E01b Thats Show Biz Part 2 1080p H.264 (moviesbyrizzo upload).mp4", [1]), + ("Mazinger-Z-Cap-52.avi", [52]), + ("Mob.Psycho.100.II.E10.720p.WEB.x264-URANiME.mkv", [10]), + ("Mob Psycho 100 - 09 [1080p].mkv", [9]), + ("MosGaz.(08.seriya).2012.WEB-DLRip(AVC).ExKinoRay.mkv", [8]), + ("My Little Pony - A Amizade é Mágica - T02E22.mp4", [22]), + ("My Little Pony FiM - 6.01 - No Second Prances.mkv", [1]), + ("Naruto Shippuden - 107 - Strange Bedfellows", [107]), + ("Naruto Shippuden - 107 - Strange Bedfellows.mkv", [107]), + ("Naruto Shippuden Ep 107 - Strange Bedfellows.mkv", [107]), + ("Naruto Shippuuden - 006-007.mkv", [6, 7]), + ("NCIS Season 11 01.mp4", [1]), + ("office_03_19.avi", [19]), + ("Orange Is The New Black Season 5 Episodes 1-10 INCOMPLETE (LEAKED)", list(range(1, 11))), + ("Otchayannie.domochozyaiki.(8.sez.21.ser.iz.23).2012.XviD.HDTVRip.avi", [21]), + ("Ozk.02.09.avi", [9]), + ("Ozk.02.10.F.avi", [10]), + ("Pokemon Black & White E10 - E17 [CW] AVI", [10, 11, 12, 13, 14, 15, 16, 17]), + ("Pokémon.S01E01-E04.SWEDISH.VHSRip.XviD-aka", [1, 2, 3, 4]), + ("Prehistoric park.3iz6.Supercroc.DVDRip.Xvid.avi", [3]), + ("Pwer-04_05.avi", [5]), + ("S01 - E03 - Fifty-Fifty.mkv", [3]), + ("S03E13_91.avi", [13]), ("Smallville (1x02 Metamorphosis).avi", [2]), + ("Spergrl-2016-02_04.avi", [4]), + ("Stargate Universe S01E01-E02-E03.mp4", [1, 2, 3]), + ("Stargate Universe S01E01E02E03.mp4", [1, 2, 3]), + ("Supernatural - S03E01 - 720p BluRay x264-Belex - Dual Audio + Legenda.mkv", [1]), + ("SupNat-11_06.avi", [6]), + ("Tajny.sledstvija.(2.sezon.12.serija.iz.12).2002.XviD.DVDRip.avi", [12]), + ("Tajny.sledstviya-20.01.serya.WEB-DL.(1080p).by.lunkin.mkv", [1]), ("The.Man.In.The.High.Castle1x01.HDTV.XviD[www.DivxTotaL.com].avi", [1]), - ("clny.3x11m720p.es[www.planetatorrent.com].mkv", [11]), - ("Friends.S07E20.The.One.With.Rachel's.Big.Kiss.720p.BluRay.2CH.x265.HEVC-PSA.mkv", [20]), - ("Friends - [8x18] - The One In Massapequa.mkv", [18]), - ("Orange Is The New Black Season 5 Episodes 1-10 INCOMPLETE (LEAKED)", list(range(1, 11))), + ("The.Witcher.S01.07.2019.Dub.AVC.ExKinoRay.mkv", [7]), + ("The.Witcher.S01.07.mp4", [7]), + ("The Amazing World of Gumball - 103 - The End - The Dress (720p.x264.ac3-5.1) [449].mkv", [103]), + ("The Amazing World of Gumball - 103, 104 - The Third - The Debt.mkv", [103, 104]), + ("The Amazing World of Gumball - 107a - The Mystery (720p.x264.ac3-5.1) [449].mkv", [107]), + ("The Amazing World of Gumball - 107b - The Mystery (720p.x264.ac3-5.1) [449].mkv", [107]), + ("The Avengers (EMH) - S01 E15 - 459 (1080p - BluRay)", [15]), + ("The Avengers (EMH) - S01 E15 - 459 (1080p - BluRay).mp4", [15]), + ("The Ed Show 10-19-12.mp4", []), + ("The Office S07E25+E26 Search Committee.mp4", [25, 26]), + ("The Simpsons E1-200 1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole", list(range(1, 201))), + ("The Simpsons S01E01 1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole", [1]), + ("The Simpsons S01E01-E02 1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole", [1, 2]), + ("The Simpsons S01E01-E02-E03-E04-E05 1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole", [1, 2, 3, 4, 5]), + ("The Simpsons S01E01E02 1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole", [1, 2]), + ("The Simpsons S01E01E02E03E04E05 1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole", [1, 2, 3, 4, 5]), + ("The Simpsons S28E21 720p HDTV x264-AVS", [21]), + ("The Twilight Zone 1985 S01E22c The Library.mp4", [22]), + ("The Twilight Zone 1985 S01E23a Shadow Play.mp4", [23]), + ("Tokyo Ghoul Root A - 07 [S2-07] [Eng Sub] 480p [email protected]", [7]), + ("Top Gear - 3x05 - 2003.11.23.avi", [5]), + ("Vikings.s02.09.AVC.tahiy.mkv", [9]), ("Vikings.Season.05.Ep(01-10).720p.WebRip.2Ch.x265.PSA", list(range(1, 11))), - ("Naruto Shippuden Ep 107 - Strange Bedfellows.mkv", [107]), - ("Friends - [7x23-24] - The One with Monica and Chandler's Wedding + Audio Commentary.mkv", list(range(23, 25))), + ("Vikings.Season.05.Ep(01-10).720p.WebRip.2Ch.x265.PSA", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), + ("Watch Gary And His Demons Episode 10 - 0.00.07-0.11.02.mp4", [10]), + ("Witches Of Salem - 2Of4 - Road To Hell - Gr.mkv", [2]), + ("Witches Of Salem - 2Of4 - Road To Hell - Great Mysteries Of The World", [2]), + ("wwe.nxt.uk.11.26.mkv", [26]), + ("wwf.raw.is.war.18.09.00.avi", []), + ("Yu-Gi-Oh! ZEXAL Temporada 1 Episodio 009 Dual Latino e Inglés [B3B4970E].mkv", [9]), ("Yu-Gi-Oh 3x089 - Awakening of Evil (Part 4).avi", [89]), - ("611-612 - Desperate Measures, Means & Ends.mp4", [611, 612]), - ("[TBox] Dragon Ball Z Full 1-291(Subbed Jap Vers)", list(range(1, 292))), - ("Naruto Shippuden - 107 - Strange Bedfellows.mkv", [107]), + ("Zvezdnie.Voiny.Voina.Klonov.3.sezon.22.seria.iz.22.XviD.HDRip.avi", [22]), + ("[5.01] Weight Loss.avi", [1]), + ("[92 Impatient Eilas & Miyafuji] Strike Witches - Road to Berlin - 01 [1080p][BCDFF6A2].mkv", [1]), + ("[224] Darling in the FranXX - 14 [BDRip.1080p.x265.FLAC].mkv", [14]), + ("[224] Shingeki no Kyojin - S03 - Part 1 - 13 [BDRip.1080p.x265.FLAC]", [13]), + ("[224] Shingeki no Kyojin - S03 - Part 1 - 13 [BDRip.1080p.x265.FLAC].mkv", [13]), + ("[a-s]_fairy_tail_-_003_-_infiltrate_the_everlue_mansion__rs2_[1080p_bd-rip][4CB16872].mkv", [3]), + ("[ACX]El_Cazador_de_la_Bruja_-_19_-_A_Man_Who_Protects_[SSJ_Saiyan_Elite]_[9E199846].mkv", [19]), + ("[animeawake] Naruto Shippuden - 072 - The Quietly Approaching Threat_2.mkv", [72]), + ("[animeawake] Naruto Shippuden - 120 - Kakashi Chronicles. Boys' Life on the Battlefield. Part 2.mkv", [120]), + ("[animeawake] Naruto Shippuden - 124 - Art_2.mkv", [124]), ("[AnimeRG] Naruto Shippuden - 107 [720p] [x265] [pseudo].mkv", [107]), - ("Game.of.Thrones.S01.e01-02.2160p.UHD.BluRay.x265-Morpheus", list(range(1, 3))), - ("Breaking Bad S03e01-13 (1080p Ita Eng Spa h265 SubS) 2ndREPACK byMe7alh", list(range(1, 14))), + ("[BenjiD] Quan Zhi Gao Shou (The King’s Avatar) / Full-Time Master S01 (01 - 12) [1080p x265] [Soft sub] V2", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), + ("[CBM]_Medaka_Box_-_11_-_This_Is_the_End!!_[720p]_[436E0E90]", [11]), + ("[CBM]_Medaka_Box_-_11_-_This_Is_the_End!!_[720p]_[436E0E90].mkv", [11]), + ("[Eng Sub] Rebirth Ep #36 [8CF3ADFA].mkv", [36]), + ("[Erai-raws] 3D Kanojo - Real Girl 2nd Season - 01 ~ 12 [720p]", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), + ("[Erai-raws] 22-7 - 11 .mkv", [11]), + ("[Erai-raws] Carole and Tuesday - 01 ~ 12 [1080p][Multiple Subtitle]", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), + ("[Erai-raws] Granblue Fantasy The Animation Season 2 - 10 [1080p][Multiple Subtitle].mkv", [10]), + ("[Erai-raws] Shingeki no Kyojin Season 3 - 11 [1080p][Multiple Subtitle].mkv", [11]), + ("[Exiled-Destiny]_Tokyo_Underground_Ep02v2_(41858470).mkv", [2]), + ("[F-D] Fairy.Tail.-.004v2.-. [480P][Dual-Audio].mkv", [4]), + ("[F-D] Fairy Tail Season 1 - 6 + Extras [480P][Dual-Audio]", []), + ("[F-D] Fairy Tail Season 1 -6 + Extras [480P][Dual-Audio]", []), + ("[FFA] Koi to Producer: EVOL×LOVE - 01 - 12 [1080p][HEVC][AAC]", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), + ("[Final8]Suisei no Gargantia - 05 (BD 10-bit 1920x1080 x264 FLAC)[E0B15ACF].mkv", [5]), + ("[GM-Team][国漫][绝代双骄][Legendary Twins][2022][08][HEVC][GB][4K].mp4", [8]), + ("[Golumpa] Star Blazers 2202 - 22 (Uchuu Senkan Yamato 2022) [FuniDub 1080p x264 AAC] [A24B89C8].mkv", [22]), + ("[HorribleSubs] White Album 2 - 06 [1080p].mkv", [6]), + ("[HR] Boku no Hero Academia 87 (S4-24) [1080p HEVC Multi-Subs] HR-GZ", [24]), + ("[KH] Sword Art Online II - 14.5 - Debriefing.mkv", [14]), + ("[KTKJ]_[BLEACH]_[DVDRIP]_[116]_[x264_640x480_aac].mkv", [116]), + ("[OMDA] Bleach - 002 (480p x264 AAC) [rich_jc].mkv", [2]), + ("[SSA] Detective Conan - 1001 [720p].mkv", [1001]), + ("[SubsPlease] Digimon Adventure (2020) - 35 (720p) [4E7BA28A].mkv", [35]), + ("[TBox] Dragon Ball Z Full 1-291(Subbed Jap Vers)", list(range(1, 292))), + ("Викинги / Vikings / Сезон: 5 / Серии: 1 [2017, WEB-DL 1080p] MVO", [1]), + ("Викинги / Vikings / Сезон: 5 / Серии: 1 из 20 [2017, WEB-DL 1080p] MVO", [1]), + ("Доктор Хаус 03-20.mkv", [20]), + ("Интерны. Сезон №9. Серия №180.avi", [180]), + ("Комиссар Рекс 11-13.avi", [13]), + ("Леди Баг и Супер-Кот – Сезон 3, Эпизод 21 – Кукловод 2 [1080p].mkv", [21]), + ("Меч (05 сер.) - webrip1080p.mkv", [5]), + ("Мистер Робот / Mr. Robot / Сезон: 2 / Серии: 1-5 (12) [2016, США, WEBRip 1080p] MVO", [1, 2, 3, 4, 5]), + ("Проклятие острова ОУК_ 5-й сезон 09-я серия_ Прорыв Дэна.avi", [9]), + ("Разрушители легенд. MythBusters. Сезон 15. Эпизод 09. Скрытая угроза (2015).avi", [9]), + ("Серия 11.mkv", [11]), ]) def test_episode_parser(release_name, expected_episode, parser): result = parser.parse(release_name) diff --git a/tests/test_season.py b/tests/test_season.py index adcc20d..3a2e80e 100644 --- a/tests/test_season.py +++ b/tests/test_season.py @@ -12,52 +12,107 @@ def parser(): @pytest.mark.parametrize("release_name, expected_seasons", [ - ("The Simpsons S28E21 720p HDTV x264-AVS", [28]), + ("2 сезон 24 серия.avi", [2]), + ("2-06. Девичья сила.mkv", [2]), + ("2. Discovery-Kak_ustroena_Vselennaya.(2.sezon_8.serii.iz.8).2012.XviD.HDTVRip.Krasnodarka", [2]), + ("3 сезон", [3]), + ("3º Temporada Bob esponja Pt-Br", [3]), + ("4-13 Cursed (HD).m4v", [4]), + ("13-13-13 2013 DVDrip x264 AAC-MiLLENiUM", []), + ("24 Season 1-8 Complete with Subtitles", [1, 2, 3, 4, 5, 6, 7, 8]), + ("30 M0N3D4S ESP T01XE08.mkv", [1]), + ("Ace of the Diamond: 1st Season", [1]), + ("Ace of the Diamond: 2nd Season", [2]), + ("Adventure Time 10 th season", [10]), + ("All of Us Are Dead . 2022 . S01 EP #1.2.mkv", [1]), + ("Beavis and Butt-Head - 1a. Temporada", [1]), + ("Boondocks, The - Seasons 1 + 2", [1, 2]), ("breaking.bad.s01e01.720p.bluray.x264-reward", [1]), - ("S011E16.mkv", [11]), - ("Dragon Ball Super S01 E23 French 1080p HDTV H264-Kesni", [1]), - ("The Twilight Zone 1985 S01E23a Shadow Play.mp4", [1]), - ("Mash S10E01b Thats Show Biz Part 2 1080p H.264 (moviesbyrizzo upload).mp4", [10]), - ("The Twilight Zone 1985 S01E22c The Library.mp4", [1]), + ("Breaking Bad Complete Season 1 , 2 , 3, 4 ,5 ,1080p HEVC", [1, 2, 3, 4, 5]), + ("Bron - S4 - 720P - SweSub.mp4", [4]), + ("clny.3x11m720p.es[www.planetatorrent.com].mkv", [3]), + ("Coupling Season 1 - 4 Complete DVDRip - x264 - MKV by RiddlerA", [1, 2, 3, 4]), + ("DARKER THAN BLACK - S00E04 - Darker Than Black Gaiden OVA 3.mkv", [0]), ("Desperate.Housewives.S0615.400p.WEB-DL.Rus.Eng.avi", [6]), + ("Desperate Housewives - Episode 1.22 - Goodbye for now.avi", [1]), + ("Discovery. Парни с Юкона / Yokon Men [06х01-08] (2017) HDTVRip от GeneralFilm | P1", [6]), ("Doctor.Who.2005.8x11.Dark.Water.720p.HDTV.x264-FoV", [8]), + ("Doctor Who S01--S07--Complete with holiday episodes", [1, 2, 3, 4, 5, 6, 7]), + ("Dragon Ball Super S01 E23 French 1080p HDTV H264-Kesni", [1]), + ("Dragon Ball [5.134] Preliminary Peril.mp4", [5]), + ("Elementar 3º Temporada Dublado", [3]), + ("Empty Nest Season 1 (1988 - 89) fiveofseven", [1]), + ("Eu, a Patroa e as Crianças 4° Temporada Completa - HDTV - Dublado", [4]), + ("Friends.Complete.Series.S01-S10.720p.BluRay.2CH.x265.HEVC-PSA", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), + ("Friends S04 Season 4 1080p 5.1Ch BluRay ReEnc-DeeJayAhmed", [4]), + ("Futurama Season 1 2 3 4 5 6 7 + 4 Movies - threesixtyp", [1, 2, 3, 4, 5, 6, 7]), + ("Game Of Thrones - Season 1 to 6 (Eng Subs)", [1, 2, 3, 4, 5, 6]), + ("Game Of Thrones Complete Season 1,2,3,4,5,6,7 406p mkv + Subs", [1, 2, 3, 4, 5, 6, 7]), + ("Game of Thrones / Сезон: 1-8 / Серии: 1-73 из 73 [2011-2019, США, BDRip 1080p] MVO (LostFilm)", [1, 2, 3, 4, 5, 6, 7, 8]), + ("House MD All Seasons (1-8) 720p Ultra-Compressed", [1, 2, 3, 4, 5, 6, 7, 8]), + ("How I Met Your Mother Season 1, 2, 3, 4, 5, & 6 + Extras DVDRip", [1, 2, 3, 4, 5, 6]), + ("Juego de Tronos - Temp.2 [ALTA DEFINICION 720p][Cap.209][Spanish].mkv", [2]), + ("Kyoukai no Rinne (TV) 3rd Season - 23 [1080p]", [3]), + ("Los Simpsons Temp 7 DVDrip Espanol De Espana", [7]), + ("Mad Men S02 Season 2 720p 5.1Ch BluRay ReEnc-DeeJayAhmed", [2]), + ("MARATHON EPISODES/Orphan Black S3 Eps.05-08.mp4", [3]), + ("Mash S10E01b Thats Show Biz Part 2 1080p H.264 (moviesbyrizzo upload).mp4", [10]), + ("Merl - Temporada 1", [1]), + ("My Little Pony - A Amizade é Mágica - T02E22.mp4", [2]), + ("My Little Pony FiM - 6.01 - No Second Prances.mkv", [6]), + ("Naruto Shippuden Season 1:11", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]), + ("Once Upon a Time [S01-07] (2011-2017) WEB-DLRip by Generalfilm", [1, 2, 3, 4, 5, 6, 7]), + ("One Punch Man 01 - 12 Season 1 Complete [720p] [Eng Subs] [Xerxe:16", [1]), ("Orange Is The New Black Season 5 Episodes 1-10 INCOMPLETE (LEAKED)", [5]), + ("Otchayannie.domochozyaiki.(8.sez.21.ser.iz.23).2012.XviD.HDTVRip.avi", [8]), + ("Perdidos: Lost: Castellano: Temporadas 1 2 3 4 5 6 (Serie Com", [1, 2, 3, 4, 5, 6]), + ("Ranma-12-86.mp4", []), + ("S011E16.mkv", [11]), + ("Seinfeld S02 Season 2 720p WebRip ReEnc-DeeJayAhmed", [2]), + ("Seinfeld Season 2 S02 720p AMZN WEBRip x265 HEVC Complete", [2]), + ("Seizoen 22 - Zon & Maan Ultra Legendes/afl.18 Je ogen op de bal houden!.mp4", [22]), + ("Skam.S01-S02-S03.SweSub.720p.WEB-DL.H264", [1, 2, 3]), ("Smallville (1x02 Metamorphosis).avi", [1]), + ("Sons of Anarchy Sn4 Ep14 HD-TV - To Be, Act 2, By Cool Release", [4]), + ("South Park Complete Seasons 1: 11", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]), + ("Stargate Atlantis ALL Seasons - S01 / S02 / S03 / S04 / S05", [1, 2, 3, 4, 5]), + ("Stargate Atlantis Complete (Season 1 2 3 4 5) 720p HEVC x265", [1, 2, 3, 4, 5]), + ("Teen Titans Season 1-5", [1, 2, 3, 4, 5]), + ("Teen Wolf - 04ª Temporada 720p", [4]), ("The.Man.In.The.High.Castle1x01.HDTV.XviD[www.DivxTotaL.com].avi", [1]), - ("clny.3x11m720p.es[www.planetatorrent.com].mkv", [3]), - ("Game Of Thrones Complete Season 1,2,3,4,5,6,7 406p mkv + Subs", list(range(1, 8))), - ("Futurama Season 1 2 3 4 5 6 7 + 4 Movies - threesixtyp", list(range(1, 8))), - ("Breaking Bad Complete Season 1 , 2 , 3, 4 ,5 ,1080p HEVC", list(range(1, 6))), - ("True Blood Season 1, 2, 3, 4, 5 & 6 + Extras BDRip TSV", list(range(1, 7))), - ("How I Met Your Mother Season 1, 2, 3, 4, 5, & 6 + Extras DVDRip", list(range(1, 7))), - ("The Simpsons Season 20 21 22 23 24 25 26 27 - threesixtyp", list(range(20, 28))), - ("Perdidos: Lost: Castellano: Temporadas 1 2 3 4 5 6 (Serie Com", list(range(1, 7))), - ("The Boondocks Season 1, 2 & 3", list(range(1, 4))), - ("Boondocks, The - Seasons 1 + 2", list(range(1, 3))), - ("The Boondocks Seasons 1-4 MKV", list(range(1, 5))), - ("The Expanse Complete Seasons 01 & 02 1080p", list(range(1, 3))), - ("Friends.Complete.Series.S01-S10.720p.BluRay.2CH.x265.HEVC-PSA", list(range(1, 11))), - ("Stargate Atlantis ALL Seasons - S01 / S02 / S03 / S04 / S05", list(range(1, 6))), - ("Stargate Atlantis Complete (Season 1 2 3 4 5) 720p HEVC x265", list(range(1, 6))), - ("Skam.S01-S02-S03.SweSub.720p.WEB-DL.H264", list(range(1, 4))), - ("Игра престолов / Game of Thrones [S1-8] (2011-2019) Blu-Ray Remux 2160p | 4K | HEVC | HDR | Dolby Vision | D, P", list(range(1, 9))), - ("Игра престолов / Game of Thrones (2011-2019) BDRemux [H.264/1080p] (S1-8E1-73 of 73) AlexFilm, LostFilm, FoxLife, Ren-TV, Kravec, Jaskier, FocusStudio, NewStudio, FOX, AMS, OmskBird", list(range(1, 9))), - ("Game.of.Thrones.S01-07.LostFilm.AlexFilm.Dub.Eng.BDRip.1080p", list(range(1, 8))), - ("Game.of.Thrones.S01.2160p.UHD.BluRay.x265-SpaceHD13", [1]), - ("Game_Of_Thrones_Season 01", [1]), - ("Game.of.Thrones.S01.e01-02.2160p.UHD.BluRay.x265-Morpheus", [1]), - ("Spongebob Squarepants Season 1-8 DvdRip", list(range(1, 9))), - ("[DBDRaws][海绵宝宝 第一季spongebob squarepants Season 1][0120TV][1080P][WebRip][HEVC10bit][AC3][MKV]", [1]), - ("Supernatural_s15_LostFilm_1080p", [15]), - ("Supernatural (2005) Season 15 S15 (1080p BluRay x265 HEVC 10bit AAC 5.1 Silence)", [15]), - ("Supernatural Season 1-10 1 2 3 4 5 6 7 8 9 10 Complete HD {KURD}", list(range(1, 11))), - ("Breaking Bad - Complete Season 1,2,3,4,5 + Extras - BluRay 1080p", list(range(1, 6))), - ("Breaking Bad Season 1, 2 & 3 + Extras Blu-ray BDRip TSV", list(range(1, 4))), - ("Silo.Season.1.2160p.DV.H265-MIXED", [1]), - ("Stranger.Things.S01-S04.1080p.WEB-DL.DDP5.1.x264-AOC", list(range(1, 5))), - ("Stranger.Things.Netflix.S01 S04.Complete.1080p 720p.MKV.MP4.AAC.WEB-DL [62.1GB]", list(range(1, 5))), + ("The Boondocks Season 1, 2 & 3", [1, 2, 3]), + ("The Boondocks Seasons 1-4 MKV", [1, 2, 3, 4]), + ("The Expanse Complete Seasons 01 & 02 1080p", [1, 2]), + ("The Nile Egypts Great River with Bettany Hughes Series 1 4of4 10", [1]), + ("The Simpsons S28E21 720p HDTV x264-AVS", [28]), + ("The Simpsons Season 20 21 22 23 24 25 26 27 - threesixtyp", [20, 21, 22, 23, 24, 25, 26, 27]), + ("The Twilight Zone 1985 S01E22c The Library.mp4", [1]), + ("The Twilight Zone 1985 S01E23a Shadow Play.mp4", [1]), + ("The Walking Dead [Temporadas 1 & 2 Completas Em HDTV E Legena", [1, 2]), + ("Tokyo Ghoul Root A - 07 [S2-07] [Eng Sub] 480p [email protected]", [2]), + ("Travelers - Seasons 1 and 2 - Mp4 x264 AC3 1080p", [1, 2]), + ("True Blood Season 1, 2, 3, 4, 5 & 6 + Extras BDRip TSV", [1, 2, 3, 4, 5, 6]), + ("Vikings 3 Temporada 720p", [3]), + ("Zvezdnie.Voiny.Voina.Klonov.3.sezon.22.seria.iz.22.XviD.HDRip.avi", [3]), + ("[5.01] Weight Loss.avi", [5]), + ("[Erai-raws] Granblue Fantasy The Animation Season 2 - 08 [1080p][Multiple Subtitle].mkv", [2]), + ("[Erai-raws] Granblue Fantasy The Animation Season 2 - 10 [1080p][Multiple Subtitle].mkv", [2]), + ("[Erai-raws] Shingeki no Kyojin Season 3 - 11 (BD 1080p Hi10 FLAC) [1FA13150].mkv", [3]), + ("[F-D] Fairy Tail Season 1 -6 + Extras [480P][Dual-Audio]", [1, 2, 3, 4, 5, 6]), + ("[FFA] Kiratto Pri☆chan Season 3 - 11 [1080p][HEVC].mkv", [3]), + ("[HR] Boku no Hero Academia 87 (S4-24) [1080p HEVC Multi-Subs] HR-GZ", [4]), + ("[SCY] Attack on Titan Season 3 - 11 (BD 1080p Hi10 FLAC) [1FA13150].mkv", [3]), + ("Доктор Хаус 03-20.mkv", [3]), + ("Друзья / Friends / Сезон: 1 / Серии: 1-24 из 24 [1994-1995, США, BDRip 720p] MVO + Original + Sub (Rus, Eng)", [1]), + ("Друзья / Friends / Сезон: 1, 2 / Серии: 1-24 из 24 [1994-1999, США, BDRip 720p] MVO", [1, 2]), + ("Интерны. Сезон №9. Серия №180.avi", [9]), + ("Комиссар Рекс 11-13.avi", [11]), + ("Леди Баг и Супер-Кот – Сезон 3, Эпизод 21 – Кукловод 2 [1080p].mkv", [3]), + ("Проклятие острова ОУК_ 5-й сезон 09-я серия_ Прорыв Дэна.avi", [5]), + ("Разрушители легенд. MythBusters. Сезон 15. Эпизод 09. Скрытая угроза (2015).avi", [15]), + ("Сезон 5/Серия 11.mkv", [5]), ]) def test_season_detection(parser, release_name, expected_seasons): result = parser.parse(release_name) - assert "seasons" in result, f"Season key missing in result for {release_name}" - assert set(result.get("seasons", [])) == set(expected_seasons), f"Incorrect seasons detected for {release_name}" + assert isinstance(result, dict), f"Parser did not return a dict for {release_name}" + assert result["seasons"] == expected_seasons, f"Failed for {release_name}"