mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00

- Requires us to add pytest.ini to tell pytest where to look for test files, and set the python path. - Mock drops terminal from the tested code, so we have to "mock" it in test_colors() - Enable coverage in tox tests.
10 lines
152 B
Bash
Executable file
10 lines
152 B
Bash
Executable file
#! /bin/bash -e
|
|
cov=--cov
|
|
args=()
|
|
for arg; do
|
|
case $arg in
|
|
--no-cov) cov= ;;
|
|
*) args+=( "$arg" )
|
|
esac
|
|
done
|
|
exec python3 -m pytest -vv $cov "${args[@]}"
|