Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Saleh Hindi committed Jan 9, 2017
1 parent 964c44e commit 33a2115
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 33a2115

Please sign in to comment.