Commit a8f823fe1bc3e4795eef26dddf47302910250eee

Authored by Lucas Kanashiro
1 parent ee075ec1

Fix flak8 warnings

colab/accounts/tests/test_utils_validators.py
@@ -6,8 +6,8 @@ from ..utils.validators import validate_social_account @@ -6,8 +6,8 @@ from ..utils.validators import validate_social_account
6 class TestValidators(TestCase): 6 class TestValidators(TestCase):
7 7
8 def test_validate_social_account_with_fake_account(self): 8 def test_validate_social_account_with_fake_account(self):
9 - self.assertFalse(validate_social_account('john-fake',  
10 - 'http://twitter.com')) 9 + self.assertFalse(validate_social_account('john-fake',
  10 + 'http://twitter.com'))
11 11
12 def test_validate_social_account(self): 12 def test_validate_social_account(self):
13 self.assertTrue(validate_social_account('john', 'http://twitter.com')) 13 self.assertTrue(validate_social_account('john', 'http://twitter.com'))
colab/plugins/tests/test_views.py
@@ -6,7 +6,7 @@ from colab.accounts.models import User @@ -6,7 +6,7 @@ from colab.accounts.models import User
6 6
7 7
8 class ViewsTest(TestCase): 8 class ViewsTest(TestCase):
9 - 9 +
10 def setUp(self): 10 def setUp(self):
11 self.view = ColabProxyView() 11 self.view = ColabProxyView()
12 self.factory = RequestFactory() 12 self.factory = RequestFactory()
@@ -18,5 +18,5 @@ class ViewsTest(TestCase): @@ -18,5 +18,5 @@ class ViewsTest(TestCase):
18 request = self.factory.get('/') 18 request = self.factory.get('/')
19 request.user = self.user 19 request.user = self.user
20 20
21 - with self.assertRaises(NotImplementedError): 21 + with self.assertRaises(NotImplementedError):
22 self.view.dispatch(request, '/') 22 self.view.dispatch(request, '/')