-# -*- coding: utf-8 -*-
-"""Test getting configuration."""
from unittest import TestCase
-from cbconf import Conf
+import coffee_getter.conf as conf
-class LoadConfig(TestCase):
- def test_conf_exists(self):
- c = Conf()
- self.assertIsNotNone(c.conf)
- def test_coffebot_url(self):
- c = Conf()
- self.assertIn("https://hooks.slack.com/services/", c.getCoffeebotURL())
-
- def test_db_url(self):
- c = Conf()
- self.assertIn(".db", c.getCoffeeDbPath())
+class Configuration(TestCase):
+ def test_config_exists(self):
+ assert len(conf.TESTCOFFEEBOT_SLACK_URL) > 0
+ assert len(conf.COFFEEBOT_SLACK_URL) > 0
+ assert len(conf.DB_PATH) > 0