dev: adds utility command for snapshot updating
This commit is contained in:
parent
46dc6dd6d9
commit
857391425f
9
do.sh
9
do.sh
@ -39,6 +39,15 @@ test() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updatesnap() {
|
||||||
|
echo "I am ${FUNCNAME[0]}ing"
|
||||||
|
if [[ "${DO_NIX_CUSTOM:=0}" -eq 1 ]]; then
|
||||||
|
pytest --snapshot-update
|
||||||
|
else
|
||||||
|
poetry run pytest --snapshot-update
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
htmlcov() {
|
htmlcov() {
|
||||||
if [[ "${DO_NIX_CUSTOM:=0}" -eq 1 ]]; then
|
if [[ "${DO_NIX_CUSTOM:=0}" -eq 1 ]]; then
|
||||||
pytest --cov-report=html
|
pytest --cov-report=html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user