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/auth_tests/test_management.py | |
| 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/auth_tests/test_management.py')
| -rw-r--r-- | tests/auth_tests/test_management.py | 4 |
1 files changed, 2 insertions, 2 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 |
