tests: Replace skipUnless with skipif.
The function skipUnless is available in `unittest`, but not `pytest`.
This commit is contained in:
parent
f3e824f68b
commit
0342c5b83e
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ def test_main_generate_fdf():
|
||||||
else:
|
else:
|
||||||
pytest.fail(f"pattern {pattern!r} not found in FDF output")
|
pytest.fail(f"pattern {pattern!r} not found in FDF output")
|
||||||
|
|
||||||
@pytest.mark.skipUnless(PDFTK, "need pdftk installed")
|
@pytest.mark.skipif(not PDFTK, reason="need pdftk installed")
|
||||||
@pytest.mark.xfail(reason="`pdftk fill_form` expects a full PDF")
|
@pytest.mark.xfail(reason="`pdftk fill_form` expects a full PDF")
|
||||||
def test_main_fill_pdf():
|
def test_main_fill_pdf():
|
||||||
arglist = [
|
arglist = [
|
||||||
|
|
Loading…
Reference in a new issue