Skip to content

Commit

Permalink
Adding a test for welcome page
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jun 10, 2016
1 parent c35e0e8 commit 2644dd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ def login(self, username='admin', password='general'):
def logout(self):
resp = self.client.get('/logout/', follow_redirects=True)

def test_welcome(self):
self.login()
resp = self.client.get('/caravel/welcome')
assert 'Welcome' in resp.data.decode('utf-8')

def setup_public_access_for_dashboard(self, table_name):
public_role = appbuilder.sm.find_role('Public')
perms = db.session.query(ab_models.PermissionView).all()
Expand Down

0 comments on commit 2644dd1

Please sign in to comment.