mirror of
https://github.com/YunoHost-Apps/pyinventory_ynh.git
synced 2024-09-03 20:16:09 +02:00
fix code style
This commit is contained in:
parent
bc14983d74
commit
e14fe904e9
2 changed files with 3 additions and 8 deletions
|
@ -60,15 +60,11 @@ class DjangoYnhTestCase(HtmlAssertionMixin, TestCase):
|
||||||
response,
|
response,
|
||||||
status_code=301, # permanent redirect
|
status_code=301, # permanent redirect
|
||||||
expected_url='https://testserver/app_path/',
|
expected_url='https://testserver/app_path/',
|
||||||
fetch_redirect_response=False
|
fetch_redirect_response=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
response = self.client.get('/app_path/', secure=True)
|
response = self.client.get('/app_path/', secure=True)
|
||||||
self.assertRedirects(
|
self.assertRedirects(response, expected_url='/app_path/login/?next=/app_path/', fetch_redirect_response=False)
|
||||||
response,
|
|
||||||
expected_url='/app_path/login/?next=/app_path/',
|
|
||||||
fetch_redirect_response=False
|
|
||||||
)
|
|
||||||
|
|
||||||
@override_settings(SECURE_SSL_REDIRECT=False)
|
@override_settings(SECURE_SSL_REDIRECT=False)
|
||||||
def test_create_unknown_user(self):
|
def test_create_unknown_user(self):
|
||||||
|
|
|
@ -57,8 +57,7 @@ def test_requirements_txt():
|
||||||
|
|
||||||
diff = '\n'.join(
|
diff = '\n'.join(
|
||||||
difflib.unified_diff(
|
difflib.unified_diff(
|
||||||
current_content.splitlines(), output.splitlines(),
|
current_content.splitlines(), output.splitlines(), fromfile=str(requirements_txt), tofile='FRESH EXPORT'
|
||||||
fromfile=str(requirements_txt), tofile='FRESH EXPORT'
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
print(diff)
|
print(diff)
|
||||||
|
|
Loading…
Add table
Reference in a new issue