mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
This is pretty hackish as fixtures can't be used during test discovery. To properly shut down the driver I've added a conftest.py file that will be called when quitting pytest. We might be able to handle this a little better if we wrote a full plugin, but for now this works. Also now reports all test indexes, so you can select e.g test 2 of a tool.
9 lines
259 B
Python
9 lines
259 B
Python
def pytest_unconfigure(config):
|
|
try:
|
|
# This needs to be run if no test were run.
|
|
from .test_toolbox_pytest import DRIVER
|
|
DRIVER.tear_down()
|
|
print("Galaxy test driver shutdown succesfull")
|
|
except Exception:
|
|
pass
|