Rename "slice" to "chart" and update translations (#5008)

* Rename slice to chart and update translations

* Fix unit tests
This commit is contained in:
Beto Dealmeida
2018-05-21 17:49:02 -07:00
committed by Maxime Beauchemin
parent 459cb701fb
commit 973c661501
40 changed files with 56092 additions and 20404 deletions

View File

@@ -56,7 +56,7 @@ class CoreTests(SupersetTestCase):
resp = self.get_resp(
'/login/',
data=dict(username='admin', password='general'))
self.assertIn('Welcome', resp)
self.assertNotIn('User confirmation needed', resp)
resp = self.get_resp('/logout/', follow_redirects=True)
self.assertIn('User confirmation needed', resp)
@@ -64,14 +64,8 @@ class CoreTests(SupersetTestCase):
resp = self.get_resp(
'/login/',
data=dict(username='admin', password='wrongPassword'))
self.assertNotIn('Welcome', resp)
self.assertIn('User confirmation needed', resp)
def test_welcome(self):
self.login()
resp = self.client.get('/superset/welcome')
assert 'Welcome' in resp.data.decode('utf-8')
def test_slice_endpoint(self):
self.login(username='admin')
slc = self.get_slice('Girls', db.session)