1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
import pytest
from validate_pyproject.vendoring import cli, vendorify
@pytest.mark.skip(reason="not needed within Debian, we use the packaged fastjsonschema package")
def test_api(tmp_path):
with pytest.warns(DeprecationWarning, match="will be removed"):
vendorify(tmp_path)
@pytest.mark.skip(reason="not needed within Debian, we use the packaged fastjsonschema package")
def test_cli(tmp_path):
with pytest.warns(DeprecationWarning, match="will be removed"):
cli.run(["-O", str(tmp_path)])
@pytest.mark.skip(reason="not needed within Debian, we use the packaged fastjsonschema package")
def test_main(tmp_path):
with pytest.warns(DeprecationWarning, match="will be removed"):
cli.main(["-O", str(tmp_path)])
|