Added tests for config file loading

main
Ulrich Petri 12 years ago
parent ba57f104ff
commit 43038d3150

@ -0,0 +1 @@
REDIS_HOST = "testhost.example.com"

@ -0,0 +1,8 @@
from unittest import TestCase
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")
Loading…
Cancel
Save