summaryrefslogtreecommitdiffstats
path: root/utils/test/oo_config_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/test/oo_config_tests.py')
-rw-r--r--utils/test/oo_config_tests.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/utils/test/oo_config_tests.py b/utils/test/oo_config_tests.py
index 8459b7c39..01af33fd9 100644
--- a/utils/test/oo_config_tests.py
+++ b/utils/test/oo_config_tests.py
@@ -1,3 +1,7 @@
+# TODO: Temporarily disabled due to importing old code into openshift-ansible
+# repo. We will work on these over time.
+# pylint: disable=bad-continuation,missing-docstring,no-self-use,invalid-name
+
import os
import unittest
import tempfile
@@ -64,9 +68,9 @@ class OOInstallFixture(unittest.TestCase):
up in teardown.
Returns full path to the file.
"""
- f = open(path, 'w')
- f.write(config_str)
- f.close()
+ cfg_file = open(path, 'w')
+ cfg_file.write(config_str)
+ cfg_file.close()
return path
@@ -88,7 +92,7 @@ class OOConfigTests(OOInstallFixture):
self.assertEquals('openshift-enterprise', ooconfig.settings['variant'])
- def test_load_complete_validated_facts(self):
+ def test_load_complete_facts(self):
cfg_path = self.write_config(os.path.join(self.work_dir,
'ooinstall.conf'), SAMPLE_CONFIG)
ooconfig = OOConfig(cfg_path)