diff options
author | sepro <sepro@sepr0.com> | 2024-11-04 01:33:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 01:33:21 +0100 |
commit | 197d0b03b6a3c8fe4fa5ace630eeffec629bf72c (patch) | |
tree | 577bda6784f8c1dbd9bcdf5e3a524a3c3c650f75 /test | |
parent | b03267bf0675eeb8df5baf1daac7cf67840c91a5 (diff) |
[cleanup] Misc (#11347)
Closes #11361
Authored by: avagordon01, bashonly, grqz, Grub4K, seproDev
Co-authored-by: Ava Gordon <avagordon01@gmail.com>
Co-authored-by: bashonly <bashonly@protonmail.com>
Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com>
Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_traversal.py | 2 | ||||
-rw-r--r-- | test/test_utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test_traversal.py b/test/test_traversal.py index cc0228d27..d48606e99 100644 --- a/test/test_traversal.py +++ b/test/test_traversal.py @@ -490,7 +490,7 @@ class TestTraversalHelpers: {'url': 'https://example.com/subs/en', 'name': 'en'}, ], [..., { 'id': 'name', - 'ext': ['url', {lambda x: determine_ext(x, default_ext=None)}], + 'ext': ['url', {determine_ext(default_ext=None)}], 'url': 'url', }, all, {subs_list_to_dict(ext='ext')}]) == { 'de': [{'url': 'https://example.com/subs/de.ass', 'ext': 'ass'}], diff --git a/test/test_utils.py b/test/test_utils.py index 04f91547a..b5f35736b 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -2156,7 +2156,7 @@ Line 1 assert callable(int_or_none(scale=10)), 'missing positional parameter should apply partially' assert int_or_none(10, scale=0.1) == 100, 'positionally passed argument should call function' assert int_or_none(v=10) == 10, 'keyword passed positional should call function' - assert int_or_none(scale=0.1)(10) == 100, 'call after partial applicatino should call the function' + assert int_or_none(scale=0.1)(10) == 100, 'call after partial application should call the function' assert callable(join_nonempty(delim=', ')), 'varargs positional should apply partially' assert callable(join_nonempty()), 'varargs positional should apply partially' |