mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
22 lines
482 B
Python
22 lines
482 B
Python
import tempfile
|
|
|
|
import pytest
|
|
|
|
from galaxy_test.api.conftest import pytest_configure # noqa: F401
|
|
|
|
|
|
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 successful")
|
|
except Exception:
|
|
pass
|
|
|
|
|
|
@pytest.fixture
|
|
def temp_file():
|
|
with tempfile.NamedTemporaryFile(delete=True, mode='wb') as fh:
|
|
yield fh
|