Files
galaxy/test/integration/conftest.py
T
2020-04-07 13:51:25 -04:00

20 lines
413 B
Python

import tempfile
import pytest
def pytest_unconfigure(config):
try:
# This needs to be run if no test were run.
from .test_config_defaults import DRIVER
DRIVER.tear_down()
print("Galaxy test driver shutdown succesfull")
except Exception:
pass
@pytest.fixture
def temp_file():
with tempfile.NamedTemporaryFile(delete=True, mode='wb') as fh:
yield fh