Skip to content

Commit dbf9fa7

Browse files
committed
Better abstraction.
1 parent ed5ac6f commit dbf9fa7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mocket/mocks/mockhttp.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,7 @@ def register(cls, method, uri, *responses, **config):
237237
_config = cls.default_config.copy()
238238
_config.update({k: v for k, v in config.items() if k in _config})
239239

240-
Mocket.register(
241-
cls(uri, method, responses, match_querystring=_config["match_querystring"])
242-
)
240+
Mocket.register(cls(uri, method, responses, **_config))
243241

244242
@classmethod
245243
def single_register(

0 commit comments

Comments
 (0)