mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
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.
This commit is contained in:
committed by
Mariusz Felisiak
parent
90aabd730a
commit
6485894157
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user