pantry/projects/pytest.org/package.yml

24 lines
543 B
YAML
Raw Normal View History

distributable:
url: https://github.com/pytest-dev/pytest/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
versions:
2023-03-04 00:59:51 +03:00
github: pytest-dev/pytest/releases/tags
2023-10-24 23:09:14 +03:00
strip: /^v/
dependencies:
2023-10-03 18:23:56 +03:00
python.org: '>=3.7<3.12'
build:
2022-12-31 17:50:18 +03:00
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"