def test_format_with_warn(self): self.options.warn = True self.data = self.data[:1] self.data[0]['runs'] = [self.action_run] display = DisplayJobRuns(options=self.options) out = display.format(self.data) lines = out.split('\n') assert_equal(len(lines), 13) assert lines[9].startswith('Actions:'), lines[9]
def test_format(self): out = DisplayJobRuns().format(self.data) lines = out.split('\n') assert_equal(len(lines), 7)
def test_format(self): display = DisplayJobRuns(options=self.options) out = display.format(self.data) lines = out.split('\n') assert_equal(len(lines), 7)