Browse Source

chore: update test_dispatcher__execute_job.py (#1900)

disptach -> dispatch
Ikko Eltociear Ashimine 7 months ago
parent
commit
33441dd5d2

+ 2 - 2
tests/core/_orchestrator/_dispatcher/test_dispatcher__execute_job.py

@@ -48,7 +48,7 @@ def test_execute_job():
             mck_2.assert_called_once_with(job.task)  # This should be called to check if job needs to run
             mck_2.assert_called_once_with(job.task)  # This should be called to check if job needs to run
             mck_1.assert_called_once_with(job)
             mck_1.assert_called_once_with(job)
             assert job.is_running()  # The job is not executed since the dispatch is mocked
             assert job.is_running()  # The job is not executed since the dispatch is mocked
-            assert scenario.dn.edit_in_progress  # outputs must NOT have been unlocked because the disptach is mocked
+            assert scenario.dn.edit_in_progress  # outputs must NOT have been unlocked because the dispatch is mocked
 
 
 
 
 def test_execute_job_to_skip():
 def test_execute_job_to_skip():
@@ -85,7 +85,7 @@ def test_execute_job_skippable_with_force():
             mck_1.assert_called_once_with(job)  # This should be called to dispatch the job
             mck_1.assert_called_once_with(job)  # This should be called to dispatch the job
             mck_2.assert_not_called()  # This should NOT be called since we force the execution anyway
             mck_2.assert_not_called()  # This should NOT be called since we force the execution anyway
             assert job.is_running()  # The job is not executed since the dispatch is mocked
             assert job.is_running()  # The job is not executed since the dispatch is mocked
-            assert scenario.dn.edit_in_progress  # outputs must NOT have been unlocked because the disptach is mocked
+            assert scenario.dn.edit_in_progress  # outputs must NOT have been unlocked because the dispatch is mocked
 
 
 
 
 def test_execute_jobs_synchronously():
 def test_execute_jobs_synchronously():