@pytest.mark.parametrize('start_scheduler', [True, False])
    def test_add_jobstore(self, scheduler, scheduler_events, start_scheduler):
        if start_scheduler:
            scheduler.start()

        del scheduler_events[:]
        jobstore = DummyJobStore()
        scheduler.add_jobstore(jobstore, 'store1')

        assert len(scheduler_events) == 1
        assert scheduler_events[0].code == EVENT_JOBSTORE_ADDED
        assert scheduler_events[0].alias == 'store1'

        if start_scheduler:
            assert scheduler.wakeup.called
            jobstore.start.assert_called_once_with(scheduler, 'store1')
        else:
            assert not jobstore.start.called
Apply this theme to a model.
dataset/ETHPy150Open agronholm/apscheduler/tests/test_schedulers.py/TestBaseScheduler.test_add_jobstore--crossover with--dataset/ETHPy150Open bokeh/bokeh/bokeh/themes/theme.py/Theme.apply_to_model