File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1010
1111class TestWorkerAdmin (SchedulerBaseCase ):
1212
13+ def setUp (self ):
14+ self .old_settings = settings .SCHEDULER_CONFIG
15+
16+ def tearDown (self ):
17+ from scheduler import settings
18+ settings .SCHEDULER_CONFIG = self .old_settings
19+
1320 def test_scheduler_config_as_dict (self ):
1421 from scheduler .settings import SCHEDULER_CONFIG
15-
1622 settings .SCHEDULER_CONFIG = dict (
1723 EXECUTIONS_IN_PAGE = SCHEDULER_CONFIG .EXECUTIONS_IN_PAGE + 1 ,
1824 SCHEDULER_INTERVAL = SCHEDULER_CONFIG .SCHEDULER_INTERVAL + 1 ,
@@ -58,9 +64,7 @@ def test_scheduler_config_as_data_class(self):
5864 for key , value in dataclasses .asdict (settings .SCHEDULER_CONFIG ).items ():
5965 self .assertEqual (getattr (SCHEDULER_CONFIG , key ), value )
6066
61-
6267 def test_scheduler_config_as_dict_bad_param (self ):
63-
6468 settings .SCHEDULER_CONFIG = dict (
6569 EXECUTIONS_IN_PAGE = 1 ,
6670 SCHEDULER_INTERVAL = 60 ,
You can’t perform that action at this time.
0 commit comments