예제 #1
0
 def get_build(self, job_name: str, build_count: int):
     data = self.jenkins.get_build_info(job_name, build_count)
     return parse_build(data)
예제 #2
0
def test_parses_status(build_data):
    build = parse_build(build_data)
    assert build.status == 'FAILURE'
예제 #3
0
def test_parses_failed_tests(build_data):
    build = parse_build(build_data)
    assert build.failed_tests == 3
예제 #4
0
def test_parses_duration(build_data):
    build = parse_build(build_data)
    assert build.duration == 676304
예제 #5
0
def test_parses_timestamp(build_data):
    build = parse_build(build_data)
    assert build.timestamp == 1587131889595 / 1000
예제 #6
0
def test_parses_number(build_data):
    build = parse_build(build_data)
    assert build.number == 1
예제 #7
0
def test_parses_name(build_data):
    build = parse_build(build_data)
    assert build.job_name == 'PR-1377'
예제 #8
0
def test_parses_revision(build_data):
    build = parse_build(build_data)
    assert build.revision == 'ad916fe96f7e13a1d192ca5a7595ede65399063f'