Skip to content

Commit a3b21a3

Browse files
committed
collect common default kwargs
1 parent 0d98b95 commit a3b21a3

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/test_mig_wsgi-bin_migwsgi.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ def fake_set_environ(value):
217217

218218
self.application_args = (fake_wsgi_environ, self.fake_start_response,)
219219
self.application_kwargs = dict(
220+
_wrap_wsgi_errors=noop,
221+
_config_file=_TEST_CONF_FILE,
222+
_skip_log=True,
220223
_format_output=self.instrumented_format_output,
221224
_retrieve_handler=self.instrumented_retrieve_handler,
222225
_set_environ=fake_set_environ,
@@ -227,9 +230,6 @@ def test_return_value_ok_returns_status_200(self):
227230

228231
application_result = migwsgi._application(
229232
*self.application_args,
230-
_wrap_wsgi_errors=noop,
231-
_config_file=_TEST_CONF_FILE,
232-
_skip_log=True,
233233
**self.application_kwargs
234234
)
235235

@@ -243,9 +243,6 @@ def test_return_value_ok_returns_valid_html_page(self):
243243

244244
application_result = migwsgi._application(
245245
*self.application_args,
246-
_wrap_wsgi_errors=noop,
247-
_config_file=_TEST_CONF_FILE,
248-
_skip_log=True,
249246
**self.application_kwargs
250247
)
251248

@@ -260,9 +257,6 @@ def test_return_value_ok_returns_expected_title(self):
260257

261258
application_result = migwsgi._application(
262259
*self.application_args,
263-
_wrap_wsgi_errors=noop,
264-
_config_file=_TEST_CONF_FILE,
265-
_skip_log=True,
266260
**self.application_kwargs
267261
)
268262

0 commit comments

Comments
 (0)