add unicode data to tests (#432)

* add unicode data to tests

* make tests pass on 2.7

* clean up data loading

- remove duplicate keys in slice_data
- reduce line length

* change manager option flag to -t, --load-test-data

* test --> load_test_data
This commit is contained in:
andrewhn
2016-05-06 01:46:16 +10:00
committed by Maxime Beauchemin
parent a3f549bb9e
commit 6941f1de64
5 changed files with 140 additions and 6 deletions

View File

@@ -104,7 +104,7 @@ class CoreTests(CaravelTestCase):
pass
def load_examples(self):
cli.load_examples(sample=True)
cli.load_examples(load_test_data=True)
def test_save_slice(self):
self.login_admin()
@@ -137,6 +137,7 @@ class CoreTests(CaravelTestCase):
urls += [
(slc.slice_name, slc.slice_url),
(slc.slice_name, slc.viz.json_endpoint),
(slc.slice_name, slc.viz.csv_endpoint),
]
for name, url in urls:
print("Slice: " + name)