mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
a82c31eebb
pytest used a v in their branch name; here's hoping they stay consistent.
23 lines
543 B
YAML
23 lines
543 B
YAML
distributable:
|
|
url: https://github.com/pytest-dev/pytest/archive/refs/tags/v{{ version }}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: pytest-dev/pytest/releases/tags
|
|
strip: /^v/
|
|
|
|
dependencies:
|
|
python.org: '>=3.7<3.12'
|
|
|
|
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"
|