1
0
Fork 0
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:
JensDiemer 2022-01-07 18:10:34 +01:00
parent bc14983d74
commit e14fe904e9
2 changed files with 3 additions and 8 deletions

View file

@ -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):

View file

@ -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)