summaryrefslogtreecommitdiff
path: root/tests/test_scripts.py
blob: ae661c7f287b8b92707986052fd1b5248240a6d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from rq.compat import is_python_version
if is_python_version((2, 7), (3, 2)):
    from unittest import TestCase
else:
    from unittest2 import TestCase  # noqa
from rq.scripts import read_config_file


class TestScripts(TestCase):
    def test_config_file(self):
        settings = read_config_file("tests.dummy_settings")
        self.assertIn("REDIS_HOST", settings)
        self.assertEqual(settings['REDIS_HOST'], "testhost.example.com")