Skip to content

Commit

Permalink
Remove deprecated usage of pytest-runner
Browse files Browse the repository at this point in the history
- Call pytest directly in app, cli and scripts builds
- Remove pytest-runner
- Uncap pytest and install pytest-mock by default
  • Loading branch information
sbesson committed Jan 28, 2024
1 parent 3824e85 commit 7bb276d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app-build
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ set +u
export DJANGO_SETTINGS_MODULE=omeroweb.settings
export OMERODIR=/opt/omero/web/OMERO.web
export ICE_CONFIG=${OMERO_DIST}/etc/ice.config
python $DIR/setup.py test
pytest -v
3 changes: 2 additions & 1 deletion cli-build
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ PLUGIN=${PLUGIN:-$GUESS}
export OMERO_DIST=${OMERO_DIST:-/opt/omero/server/OMERO.server}
omero $PLUGIN -h

python setup.py test -t test -i ${OMERO_DIST}/etc/ice.config -vs
export ICE_CONFIG=${OMERO_DIST}/etc/ice.config
pytest -v
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ pep8-naming
pre-commit
pycodestyle
restructuredtext_lint
pytest<5
pytest
attrs
restview
mox
pytest-mock
# TODO: Apps only
pytest-django
pytest-runner
3 changes: 2 additions & 1 deletion scripts-build
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ set -x

cd $TARGET

python setup.py test -t test -i ${OMERO_DIST}/etc/ice.config -v
export ICE_CONFIG=${OMERO_DIST}/etc/ice.config
pytest -v

0 comments on commit 7bb276d

Please sign in to comment.