Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 8 lines (7 sloc) 0.311 kb
1 2 3 4 5 6 7 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")
Something went wrong with that request. Please try again.