dev: adds utility command for snapshot updating

This commit is contained in:
Deepak Mallubhotla 2023-07-23 15:30:10 -05:00
parent 46dc6dd6d9
commit 857391425f
Signed by: deepak
GPG Key ID: BEBAEBF28083E022

9
do.sh
View File

@ -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