Fix name of kwargs parameter
This commit is contained in:
parent
c7f56c5a55
commit
e45370b994
1 changed files with 3 additions and 3 deletions
|
|
@ -85,14 +85,14 @@ class EnvironBuilder(werkzeug.test.EnvironBuilder):
|
|||
self.app = app
|
||||
super(EnvironBuilder, self).__init__(path, base_url, *args, **kwargs)
|
||||
|
||||
def json_dumps(self, obj, **args):
|
||||
def json_dumps(self, obj, **kwargs):
|
||||
"""Serialize ``obj`` to a JSON-formatted string.
|
||||
|
||||
The serialization will be configured according to the config associated
|
||||
with this EnvironBuilder's ``app``.
|
||||
"""
|
||||
args.setdefault("app", self.app)
|
||||
return json_dumps(obj, **args)
|
||||
kwargs.setdefault("app", self.app)
|
||||
return json_dumps(obj, **kwargs)
|
||||
|
||||
|
||||
def make_test_environ_builder(*args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue