Ejemplo n.º 1
0
    "test_suite_timeout": 120,
    "required_coverage": {
        "ptr.py": 84,
        "TOTAL": 90
    },
    "run_black": True,
    "run_mypy": True,
    "run_flake8": True,
    "run_pylint": True,
}

EXPECTED_COVERAGE_FAIL_RESULT = test_result(
    setup_py_path=Path("unittest/setup.py"),
    returncode=3,
    output=(
        "The following files did not meet coverage requirements:\n" +
        "  unittest{}ptr.py: 69 < 99 - Missing: 70-72, 76-94, 98\n".format(sep)
    ),
    runtime=0,
    timeout=False,
)
EXPECTED_PTR_COVERAGE_FAIL_RESULT = test_result(
    setup_py_path=Path("unittest/setup.py"),
    returncode=3,
    output=
    ("The following files did not meet coverage requirements:\n  tg{}tg.py: ".
     format(sep) +
     "22 < 99 - Missing: 39-59, 62-73, 121, 145-149, 153-225, 231-234, 238\n  "
     + "TOTAL: 40 < 99 - Missing: \n"),
    runtime=0,
    timeout=False,
)
Ejemplo n.º 2
0
    "entry_point_module": "ptr",
    "test_suite": "ptr_tests",
    "test_suite_timeout": 120,
    "required_coverage": {"ptr.py": 85, "TOTAL": 90},
    "run_black": True,
    "run_mypy": True,
    "run_flake8": True,
    "run_pylint": True,
    "run_pyre": True,
}

EXPECTED_COVERAGE_FAIL_RESULT = test_result(
    setup_py_path=Path("unittest/setup.py"),
    returncode=3,
    output=(
        "The following files did not meet coverage requirements:\n"
        + f"  unittest{sep}ptr.py: 69 < 99 - Missing: 70-72, 76-94, 98\n"
    ),
    runtime=0,
    timeout=False,
)
EXPECTED_PTR_COVERAGE_FAIL_RESULT = test_result(
    setup_py_path=Path("unittest/setup.py"),
    returncode=3,
    output=(
        f"The following files did not meet coverage requirements:\n  tg{sep}tg.py: "
        + "22 < 99 - Missing: 39-59, 62-73, 121, 145-149, 153-225, 231-234, 238\n  "
        + "TOTAL: 40 < 99 - Missing: \n"
    ),
    runtime=0,
    timeout=False,
)