def test_get_existing_job_status_returns_none_on_not_found( self, mock_kube): self.assertIsNone( job_processor.get_existing_job_status({"id": "my-id"})) mock_kube.read_namespaced_job_status.assert_called_once_with( "contract-my-id", "")
def test_get_existing_job_status(self, mock_kube): self.assertEqual( job_processor.get_existing_job_status({"id": "my-id"}), {"test": "dict"}) mock_kube.read_namespaced_job_status.assert_called_once_with( "contract-my-id", "")