summaryrefslogtreecommitdiffstats
path: root/utils/test/oo_config_tests.py
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2015-10-27 11:45:56 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2015-10-27 11:45:56 -0300
commit690e5c955697fad2be8742e5a581f1e2a39d17b0 (patch)
tree2dd4259d88566af132b131c15ff89dda3cc74e55 /utils/test/oo_config_tests.py
parentdf78d323c0643fa5c7f04e20de2ff55776218df4 (diff)
downloadopenshift-690e5c955697fad2be8742e5a581f1e2a39d17b0.tar.gz
openshift-690e5c955697fad2be8742e5a581f1e2a39d17b0.tar.bz2
openshift-690e5c955697fad2be8742e5a581f1e2a39d17b0.tar.xz
openshift-690e5c955697fad2be8742e5a581f1e2a39d17b0.zip
Pylint fixes and ignores for incoming oo-install code.
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)