mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Better separation for integration tests.
This commit is contained in:
@@ -933,6 +933,11 @@ class GalaxyTestDriver(TestDriver):
|
||||
galaxy_db_path,
|
||||
**setup_galaxy_config_kwds
|
||||
)
|
||||
|
||||
isolate_galaxy_config = getattr(config_object, "isolate_galaxy_config", False)
|
||||
if isolate_galaxy_config:
|
||||
galaxy_config["config_dir"] = tempdir
|
||||
|
||||
self._saved_galaxy_config = galaxy_config
|
||||
|
||||
if galaxy_config is not None:
|
||||
|
||||
@@ -60,6 +60,10 @@ class IntegrationInstance(UsesApiTestCaseMixin):
|
||||
# Subclasses can override this to force uwsgi for tests.
|
||||
require_uwsgi = False
|
||||
|
||||
# Don't pull in default configs for un-configured things from Galaxy's
|
||||
# config directory and such.
|
||||
isolate_galaxy_config = True
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
"""Configure and start Galaxy for a test."""
|
||||
|
||||
Reference in New Issue
Block a user