Files
galaxy/test/functional/conftest.py
T
mvdbeek 9e07d9cc06 Handle driver shutdown, show all test in pytest
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.
2018-08-16 18:44:05 +02:00

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