@@ -267,7 +267,9 @@ def assertResponse(
267267 url_args = (* kwargs .pop ('args' , []), * (url_args or []))
268268 url_query_params = url_query_params or {}
269269 redirect_args = (* (redirect_args or []),)
270- redirect_kwargs = {** (redirect_kwargs or {}),}
270+ redirect_kwargs = {
271+ ** (redirect_kwargs or {}),
272+ }
271273 redirect_query_params = redirect_query_params or {}
272274 url_kwargs = {** kwargs .pop ('kwargs' , {}), ** (url_kwargs or {})}
273275 extra_usergen_kwargs = extra_usergen_kwargs or {}
@@ -390,7 +392,9 @@ def assertResponse(
390392 if view_should_redirect is None :
391393 # No value provided for this assertion. Fall back to settings value.
392394 view_should_redirect = ETC_VIEWS_SHOULD_REDIRECT
393- if view_should_redirect is not None and not (bool (response .url_data .computed .redirect_url ) == view_should_redirect ):
395+ if view_should_redirect is not None and not (
396+ bool (response .url_data .computed .redirect_url ) == view_should_redirect
397+ ):
394398 if view_should_redirect :
395399 self .fail ('Expected a page redirect, but response did not redirect.' )
396400 else :
@@ -875,6 +879,7 @@ def assertRedirects(
875879 ):
876880 self .fail (
877881 (
882+ # Comment to prevent "black" formatting.
878883 'Response expected_redirect_url didn\' t match. '
879884 'Expected url was "{0}". Actual url was "{1}".'
880885 ).format (
@@ -1715,7 +1720,9 @@ def _get_page_response(
17151720 url_args = (* kwargs .pop ('args' , []), * (url_args or []))
17161721 url_kwargs = {** kwargs .pop ('kwargs' , {}), ** (url_kwargs or {})}
17171722 query_params = query_params or {}
1718- extra_usergen_kwargs = {** (extra_usergen_kwargs or {}),}
1723+ extra_usergen_kwargs = {
1724+ ** (extra_usergen_kwargs or {}),
1725+ }
17191726
17201727 # Save provided values for user post-test debugging.
17211728 response_url_data = ResponseUrlData (
0 commit comments