1
0
mirror of https://github.com/bspeice/metrik synced 2024-11-04 22:48:11 -05:00

Fix a bad test-case

This commit is contained in:
Bradlee Speice 2016-08-30 08:53:23 -04:00
parent 84d8103c29
commit 4bc3f53081

View File

@ -13,8 +13,9 @@ class ConfigurationTest(TestCase):
config = get_config()
self.assertEqual(config.get('metrik', 'mongo_database'), 'metrik')
# This assertion will fail if you're not using pytest or running on Travis
config = get_config(is_test=False)
self.assertEqual(config.get('metrik', 'mongo_database'), 'metrik')
self.assertEqual(config.get('metrik', 'mongo_database'), 'metrik-test')
config = get_config(is_test=True)
self.assertEqual(config.get('metrik', 'mongo_database'), 'metrik-test')