Skip to content

Commit

Permalink
tests: clean DB container after tests
Browse files Browse the repository at this point in the history
Cleans up running DB container when some pytest segfaults.

Pins werkzeug upper version due to incompatibilities with Flask version
after recent releases.

Closes reanahub/reana#755.
  • Loading branch information
tiborsimko committed Nov 10, 2023
1 parent a8f224c commit 3718daf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ check_sphinx () {
check_pytest () {
clean_old_db_container
start_db_container
trap clean_old_db_container SIGINT SIGTERM SIGSEGV ERR
python setup.py test
stop_db_container
}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"apispec-webframeworks",
"Flask>=2.1.1,<2.2.0",
"jinja2<3.1.0",
"Werkzeug>=2.1.0",
"Werkzeug>=2.1.0,<3.0",
"fs>=2.0",
"marshmallow>2.13.0,<=2.20.1",
"reana-commons[kubernetes]>=0.9.3,<0.10.0",
Expand Down

0 comments on commit 3718daf

Please sign in to comment.