diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2022-05-22 08:20:29 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-25 10:53:52 +0200 |
| commit | 6485894157949338d76ca9a0da0b4c9cfef40e10 (patch) | |
| tree | 3710347f6232b8ad393e14f75d4d75ae22ab63ff /tests | |
| parent | 90aabd730a2a434c227faf8a927b0e2ccd67e291 (diff) | |
Renamed wrapped functions to wrapper.
All these functions are wrapping another function. They're the wrapper,
while the function they're wrapping is the wrapped.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/auth_tests/test_management.py | 4 | ||||
| -rw-r--r-- | tests/decorators/tests.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auth_tests/test_management.py b/tests/auth_tests/test_management.py index 2e82c1bb14..5d695e42a6 100644 --- a/tests/auth_tests/test_management.py +++ b/tests/auth_tests/test_management.py @@ -49,7 +49,7 @@ def mock_inputs(inputs): """ def inner(test_func): - def wrapped(*args): + def wrapper(*args): class mock_getpass: @staticmethod def getpass(prompt=b"Password: ", stream=None): @@ -90,7 +90,7 @@ def mock_inputs(inputs): createsuperuser.getpass = old_getpass builtins.input = old_input - return wrapped + return wrapper return inner diff --git a/tests/decorators/tests.py b/tests/decorators/tests.py index a5bfeae7ea..38bf0c7ee1 100644 --- a/tests/decorators/tests.py +++ b/tests/decorators/tests.py @@ -196,10 +196,10 @@ class ClsDec: self.myattr = myattr def __call__(self, f): - def wrapped(): + def wrapper(): return f() and self.myattr - return update_wrapper(wrapped, f) + return update_wrapper(wrapper, f) class MethodDecoratorTests(SimpleTestCase): |
