Ejemplo n.º 1
0
    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]
Ejemplo n.º 2
0
 def test_format(self):
     display = DisplayJobRuns(options=self.options)
     out = display.format(self.data)
     lines = out.split('\n')
     assert_equal(len(lines), 7)