mirror of https://github.com/peter4431/rq.git
Added tests for config file loading
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…
Reference in New Issue