test: Manually delete jobs instead of deleting job type
- This removes unwanted traceback of "Scheduled Job Type" not found while running tests
This commit is contained in:
parent
7d8695c7d3
commit
0919dbeccd
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class TestScheduler(TestCase):
|
|||
|
||||
# 2nd job not loaded
|
||||
self.assertFalse(job.enqueue())
|
||||
job.delete()
|
||||
frappe.db.sql('DELETE FROM `tabScheduled Job Log` WHERE `scheduled_job_type`=%s', job.name)
|
||||
|
||||
def test_is_dormant(self):
|
||||
self.assertTrue(is_dormant(check_time= get_datetime('2100-01-01 00:00:00')))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue