From 3967957a756b855c2da7a1e3691230fc1772640b Mon Sep 17 00:00:00 2001 From: Sergey Golitsynskiy Date: Thu, 24 Oct 2019 12:26:04 -0400 Subject: [PATCH] Delete 'resolve path' integration tests Because they've been replaced by `test_config_defaults.py`. --- test/integration/test_config_resolve_paths.py | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 test/integration/test_config_resolve_paths.py diff --git a/test/integration/test_config_resolve_paths.py b/test/integration/test_config_resolve_paths.py deleted file mode 100644 index 844314532c5..00000000000 --- a/test/integration/test_config_resolve_paths.py +++ /dev/null @@ -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