Permalink
Browse files

Added tests for config file loading

  • Loading branch information...
1 parent ba57f10 commit 43038d3150b3ec47abfbc55b2c843bf1d30489e3 @ulope ulope committed Nov 24, 2012
Showing with 9 additions and 0 deletions.
  1. +1 −0 tests/dummy_settings.py
  2. +8 −0 tests/test_scripts.py
@@ -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")

0 comments on commit 43038d3

Please sign in to comment.