2023-01-24 02:25:22 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/pytest-dev/pytest/archive/refs/tags/{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: pytest-dev/pytest
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
python.org: '>=3.7'
|
|
|
|
|
|
|
|
build:
|
2022-12-31 17:50:18 +03:00
|
|
|
python-venv.sh {{prefix}}/bin/pytest
|
2023-01-24 02:25:22 +03:00
|
|
|
|
|
|
|
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"
|