Explain pytest --runslow

This commit is contained in:
James R. Barlow
2018-08-03 00:57:59 -07:00
parent 6ef26516d1
commit 7aa4e60af2
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -173,7 +173,9 @@ def first_page_dimensions(pdf):
def pytest_addoption(parser):
parser.addoption(
"--runslow", action="store_true", default=False, help="run slow tests"
"--runslow", action="store_true", default=False,
help=("run slow tests only useful for development (unlikely to be "
"useful for downstream packagers)")
)
+1
View File
@@ -89,6 +89,7 @@ def test_monochrome_correlation(resources, outdir):
assert corr > 0.90
@pytest.mark.slow
@pytest.mark.parametrize('renderer', RENDERERS)
def test_autorotate(spoof_tesseract_cache, renderer, resources, outdir):
# cardinal.pdf contains four copies of an image rotated in each cardinal