Browse Source

[desktop] Fix pylint styling in tests

Romain Rigaux 4 years ago
parent
commit
9aa3651014
1 changed files with 5 additions and 3 deletions
  1. 5 3
      desktop/core/src/desktop/tests.py

+ 5 - 3
desktop/core/src/desktop/tests.py

@@ -402,8 +402,10 @@ def test_error_handling():
     raise PopupException(exc_msg, title="earráid", detail=exc_msg)
 
   # Add an error view
-  error_url_pat = [ url('^500_internal_error$', error_raising_view),
-                    url('^popup_exception$', popup_exception_view)]
+  error_url_pat = [
+      url('^500_internal_error$', error_raising_view),
+      url('^popup_exception$', popup_exception_view)
+  ]
   desktop.urls.urlpatterns.extend(error_url_pat)
   try:
     def store_exc_info(*args, **kwargs):
@@ -906,7 +908,7 @@ class TestStrictRedirection(object):
   def _test_redirection(self, redirection_url, expected_status_code, **kwargs):
     data = self.user.copy()
     data['next'] = redirection_url
-    response = self.client.post('/hue/accounts/login/', data, **kwargs )
+    response = self.client.post('/hue/accounts/login/', data, **kwargs)
     assert_equal(expected_status_code, response.status_code)
     if expected_status_code == 403:
       error_msg = 'Redirect to ' + redirection_url + ' is not allowed.'