aboutsummaryrefslogtreecommitdiff
path: root/test/test_utils.py
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2025-11-01 20:35:11 +0000
committerdirkf <fieldhouse@gmx.net>2025-11-21 01:52:11 +0000
commita9b4649d928b397a0b9f60fc7f9311e2be57d4b0 (patch)
tree8977f07f5f1d6e9bc5a757354dc4bbe6c281878f /test/test_utils.py
parent23a848c3141ad2ba1e7bb62708f5ed72ef81c98a (diff)
[utils] Apply `partial_application` decorator to existing functions
Thx: yt-dlp/yt-dlp#10653 (etc)
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 9aca4df63..baadbb5fa 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -1730,13 +1730,13 @@ Line 1
callable(test_fn(kwarg=10)),
'missing positional parameter should apply partially')
self.assertEqual(
- test_fn(10, kwarg=0.1), '10, kwarg=0.1',
+ test_fn(10, kwarg=42), '10, kwarg=42',
'positionally passed argument should call function')
self.assertEqual(
test_fn(x=10), '10, kwarg=None',
'keyword passed positional should call function')
self.assertEqual(
- test_fn(kwarg=0.1)(10), '10, kwarg=0.1',
+ test_fn(kwarg=42)(10), '10, kwarg=42',
'call after partial application should call the function')