Codebase list python-castellan / 54643cd
Remove functional test dependency on config file The functional tests currently depend on a physical config file to be created before the tests can be run. This change removes this dependency because default values are defined. Change-Id: I18c9ee72831ebd5ba1357479dcf2160410179779 Kaitlin Farr 8 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4949
5050 config_to_load = []
5151 local_config = './../../../etc/castellan/castellan-functional.conf'
52 main_config = '/etc/castellan/castellan-functional.conf'
5253 if os.path.isfile(config_file):
5354 config_to_load.append(config_file)
5455 elif os.path.isfile(local_config):
5556 config_to_load.append(local_config)
56 else:
57 config_to_load.append('/etc/castellan/castellan-functional.conf')
57 elif os.path.isfile(main_config):
58 config_to_load.append(main_config)
5859
5960 TEST_CONF(
6061 (), # Required to load an anonymous config