From 33a211540d8b07e59f00a162343b22d1127b05f2 Mon Sep 17 00:00:00 2001 From: Saleh Hindi Date: Mon, 9 Jan 2017 08:41:11 -0500 Subject: [PATCH] Fix linting errors --- tests/core_tests.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/core_tests.py b/tests/core_tests.py index eb7472f65997..3723439a3eab 100644 --- a/tests/core_tests.py +++ b/tests/core_tests.py @@ -183,14 +183,16 @@ def test_add_slice(self): tables = db.session.query(models.SqlaTable).all() for table in tables: - # Check that the /tablemodelview/list view contains each table and their show, edit, delete buttons + # Check that the /tablemodelview/list view contains each table and + # their show, edit, delete buttons assert table.name in resp assert '/superset/explore/table/{}'.format(table.id) in resp assert '/tablemodelview/show/{}'.format(table.id) in resp assert '/tablemodelview/edit/{}'.format(table.id) in resp assert '/tablemodelview/delete/{}'.format(table.id) in resp - # Visit each table's explore view and make sure some important functionality is there + # Visit each table's explore view and make sure some + # important functionality is there url = 'superset/explore/table/{}/'.format(table.id) explore_view = self.get_resp(url) assert '[{}] - untitled'.format(table.name) in explore_view @@ -203,7 +205,6 @@ def test_add_slice(self): assert not '/tablemodelview/edit/{}'.format(len(tables) + 1) in resp assert not '/tablemodelview/delete/{}'.format(len(tables) + 1) in resp - def test_slices_V2(self): # Add explore-v2-beta role to admin user # Test all slice urls as user with with explore-v2-beta role