Skip to content

Commit

Permalink
Added tests for config file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ulope committed Nov 24, 2012
1 parent ba57f10 commit 43038d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/dummy_settings.py
@@ -0,0 +1 @@
REDIS_HOST = "testhost.example.com"
8 changes: 8 additions & 0 deletions tests/test_scripts.py
@@ -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.