| Conditions | 1 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Module to test the scheduler.py""" |
||
| 11 | def test_remove_job(self): |
||
| 12 | """Test remove_job with existent id""" |
||
| 13 | scheduler = Scheduler() |
||
| 14 | trigger_args = {'trigger': 'interval', 'seconds': 2} |
||
| 15 | scheduler.add_callable('mock_id', MagicMock, **trigger_args) |
||
| 16 | self.assertIsNotNone(scheduler.get_job('mock_id')) |
||
| 17 | scheduler.remove_job('mock_id') |
||
| 18 | self.assertIsNone(scheduler.get_job('mock_id')) |
||
| 19 | |||
| 34 |