Attempt to reproduce #111 on travis (linux). Issue does not appear on OS X.
This commit is contained in:
parent
0893ba5fb2
commit
f8241e809b
@ -1,3 +1,4 @@
|
|||||||
|
# coding: utf-8
|
||||||
"""
|
"""
|
||||||
Test CLI following the recipe at http://dustinrcollins.com/testing-python-command-line-apps
|
Test CLI following the recipe at http://dustinrcollins.com/testing-python-command-line-apps
|
||||||
"""
|
"""
|
||||||
@ -39,8 +40,6 @@ class FreezeTestCase(TestCase):
|
|||||||
rmtree(self.d, ignore_errors=True)
|
rmtree(self.d, ignore_errors=True)
|
||||||
|
|
||||||
def test_with_config(self):
|
def test_with_config(self):
|
||||||
"""
|
|
||||||
"""
|
|
||||||
cfg = Configuration(os.path.join(os.path.dirname(__file__), 'Freezefile.yaml'))
|
cfg = Configuration(os.path.join(os.path.dirname(__file__), 'Freezefile.yaml'))
|
||||||
cfg.data['common']['database'] = self.db
|
cfg.data['common']['database'] = self.db
|
||||||
cfg.data['common']['prefix'] = self.d
|
cfg.data['common']['prefix'] = self.d
|
||||||
@ -54,3 +53,11 @@ class FreezeTestCase(TestCase):
|
|||||||
{'skip': True}]
|
{'skip': True}]
|
||||||
freeze_with_config(cfg, db=self.db)
|
freeze_with_config(cfg, db=self.db)
|
||||||
self.assertRaises(FreezeException, freeze_export, Export(cfg.data['common'], {'query': 'SELECT * FROM notable'}))
|
self.assertRaises(FreezeException, freeze_export, Export(cfg.data['common'], {'query': 'SELECT * FROM notable'}))
|
||||||
|
|
||||||
|
def test_unicode_path(self):
|
||||||
|
cfg = Configuration(os.path.join(os.path.dirname(__file__), 'Freezefile.yaml'))
|
||||||
|
cfg.data['common']['database'] = self.db
|
||||||
|
cfg.data['common']['prefix'] = os.path.join(self.d, u'über')
|
||||||
|
cfg.data['common']['query'] = 'SELECT * FROM weather'
|
||||||
|
cfg.data['exports'] = [{'filename': 'weather.csv', 'format': 'csv'}]
|
||||||
|
freeze_with_config(cfg, db=self.db)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user