Skip to content

Commit f2b8bfe

Browse files
Re-run black formatting on project
Didn't have it enabled for laptop, oops.
1 parent 5f46b52 commit f2b8bfe

File tree

3 files changed

+273
-78
lines changed

3 files changed

+273
-78
lines changed

django_expanded_test_cases/mixins/response_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ def standardize_url(
10061006
site_root_check = site_root_check.lstrip('https:')
10071007
site_root_check = site_root_check.lstrip('/').rstrip('/')
10081008
if url.startswith(site_root_check):
1009-
url = url[len(site_root_check):]
1009+
url = url[len(site_root_check) :]
10101010
# Remove standard 127 url prefix domain.
10111011
elif url.startswith('127.0.0.1'):
10121012
url = url.lstrip('127.0.0.1')

django_expanded_test_cases/test_cases/integration_test_case.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)