Files
galaxy/test/integration/conftest.py
T
2022-02-03 07:42:20 -05:00

23 lines
491 B
Python

import tempfile
import pytest
from galaxy_test.api.conftest import pytest_configure # noqa: F401
def pytest_collection_finish(session):
try:
# This needs to be run after test collection
from .test_config_defaults import DRIVER
DRIVER.tear_down()
print("Galaxy test driver shutdown successful")
except Exception:
pass
@pytest.fixture
def temp_file():
with tempfile.NamedTemporaryFile(delete=True, mode="wb") as fh:
yield fh