def test_status_summary_successful(self, get_status): """ StatusSummary depends on get_job_status that uses query_job_data. We will only test StatusSummary with simple mocks of get_job_status here. This test is with a success state. """ assert StatusSummary(self.jobs).successful_jobs == 1
def test_status_summary_coalesced(self, get_status): """Test StatusSummary with a coalesced state.""" assert StatusSummary(self.jobs).coalesced_jobs == 1
def test_status_summary_running(self, get_status): """Test StatusSummary with a running state.""" assert StatusSummary(self.jobs).running_jobs == 1