pantry/projects/pytest.org/package.yml
2023-03-03 17:20:05 -05:00

22 lines
523 B
YAML

distributable:
url: https://github.com/pytest-dev/pytest/archive/refs/tags/{{ version }}.tar.gz
strip-components: 1
versions:
github: pytest-dev/pytest/releases/tags
dependencies:
python.org: '>=3.7'
build:
python-venv.sh {{prefix}}/bin/pytest
provides:
- bin/pytest
test:
script: |
pytest --version
# Must return true to pass test; we check for the failure response afterwards explicitly.
pytest >> test.txt || true
cat test.txt | grep "FAILED test_fail.py::test_answer - assert 4 == 5"