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.

Removes forgotten `import wdb` statement that was breaking running tests
when only the `.[tests]` installation target is called to set up the
test prerequisites.

Closes reanahub/reana#755.
  • Loading branch information
tiborsimko committed Nov 10, 2023
1 parent 58f0261 commit 5b25925
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,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: 0 additions & 2 deletions tests/test_deleter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import pathlib
import uuid

import wdb

from reana_server.deleter import Deleter, InOrOut
from reana_commons.workspace import iterdir, is_directory, walk

Expand Down

0 comments on commit 5b25925

Please sign in to comment.