]> rtime.felk.cvut.cz Git - hubacji1/coffee-getter.git/blob - ut/test_conf.py
7c8dffbf749483471cdfe0ed04a6385836b49dff
[hubacji1/coffee-getter.git] / ut / test_conf.py
1 # -*- coding: utf-8 -*-
2 """Test getting configuration."""
3 from unittest import TestCase
4 from cbconf import Conf
5
6 class LoadConfig(TestCase):
7     def test_conf_exists(self):
8         c = Conf()
9         self.assertIsNotNone(c.conf)
10
11     def test_coffebot_url(self):
12         c = Conf()
13         self.assertIn("https://hooks.slack.com/services/", c.getCoffeebotURL())
14
15     def test_db_url(self):
16         c = Conf()
17         self.assertIn(".db", c.getCoffeeDbPath())