From 4bc3f53081775d496333ebd71e2c3b8e3b3304c7 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Tue, 30 Aug 2016 08:53:23 -0400 Subject: [PATCH] Fix a bad test-case --- test/test_conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_conf.py b/test/test_conf.py index 5871514..b348af4 100644 --- a/test/test_conf.py +++ b/test/test_conf.py @@ -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') \ No newline at end of file