mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #8870 from ic4f/sg_config32
Delete 'resolve path' integration tests
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
import os
|
||||
|
||||
from base import integration_util
|
||||
|
||||
|
||||
class ConfigResolvePathsTestCase(integration_util.IntegrationTestCase):
|
||||
"""
|
||||
Test automatic path resolution of configuration properties that use the
|
||||
'path_resolves_to' attribute.
|
||||
"""
|
||||
def setUp(self):
|
||||
super(ConfigResolvePathsTestCase, self).setUp()
|
||||
self.data_dir = self._app.config.data_dir
|
||||
|
||||
def get_default(self, key):
|
||||
return self._app.config.appschema[key]['default']
|
||||
|
||||
def test_resolve_openid_consumer_cache_path(self):
|
||||
schema_default = self.get_default('openid_consumer_cache_path')
|
||||
expect = os.path.join(self.data_dir, schema_default)
|
||||
assert expect == self._app.config.openid_consumer_cache_path
|
||||
|
||||
def test_resolve_citation_cache_data_dir(self):
|
||||
schema_default = self.get_default('citation_cache_data_dir')
|
||||
expect = os.path.join(self.data_dir, schema_default)
|
||||
assert expect == self._app.config.citation_cache_data_dir
|
||||
|
||||
def test_resolve_citation_cache_lock_dir(self):
|
||||
schema_default = self.get_default('citation_cache_lock_dir')
|
||||
expect = os.path.join(self.data_dir, schema_default)
|
||||
assert expect == self._app.config.citation_cache_lock_dir
|
||||
|
||||
def test_resolve_file_path(self):
|
||||
schema_default = self.get_default('file_path')
|
||||
expect = os.path.join(self.data_dir, schema_default)
|
||||
assert expect == self._app.config.file_path
|
||||
|
||||
def test_resolve_cluster_files_directory(self):
|
||||
schema_default = self.get_default('cluster_files_directory')
|
||||
expect = os.path.join(self.data_dir, schema_default)
|
||||
assert expect == self._app.config.cluster_files_directory
|
||||
|
||||
def test_resolve_dynamic_proxy_session_map(self):
|
||||
schema_default = self.get_default('dynamic_proxy_session_map')
|
||||
expect = os.path.join(self.data_dir, schema_default)
|
||||
assert expect == self._app.config.proxy_session_map # 'dynamic' previx is dropped
|
||||
Reference in New Issue
Block a user