mirror of https://github.com/peter4431/rq.git
commit
a543a3860f
@ -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…
Reference in New Issue