Browse Source

[FIX]lint errors

pull/148/head
aheficent 7 years ago
committed by Nicolas Mac Rouillon
parent
commit
34014b3fbd
  1. 1
      bi_sql_editor/models/bi_sql_view.py
  2. 3
      bi_sql_editor/tests/test_bi_sql_view.py

1
bi_sql_editor/models/bi_sql_view.py

@ -569,4 +569,3 @@ class BiSQLView(models.Model):
sql_view.view_name) sql_view.view_name)
self.env.cr.execute(req) self.env.cr.execute(req)
sql_view.size = self.env.cr.fetchone()[0] sql_view.size = self.env.cr.fetchone()[0]

3
bi_sql_editor/tests/test_bi_sql_view.py

@ -55,7 +55,8 @@ class TestBiSqlViewEditor(TransactionCase):
def test_copy(self): def test_copy(self):
copy_view = self.view.copy() copy_view = self.view.copy()
self.assertEqual(copy_view.name, 'Partners View 2 (Copy)', 'Wrong name')
self.assertEqual(
copy_view.name, 'Partners View 2 (Copy)', 'Wrong name')
def test_security(self): def test_security(self):
with self.assertRaises(AccessError): with self.assertRaises(AccessError):

Loading…
Cancel
Save