diff options
author | Thanh Ha <zxiiro@gmail.com> | 2019-08-23 09:14:39 -0400 |
---|---|---|
committer | Sorin Sbarnea <ssbarnea@redhat.com> | 2019-09-09 19:23:24 +0100 |
commit | 4d90c187a945c04b9949d5ee7738a049dd634897 (patch) | |
tree | 106bf6e05ad1f2260823e7cd68651b535b8ac3ef /tests/xml_config/test_xml_config.py | |
parent | ead185134d8aa5d3d0974207356de6c4fdb2e6e8 (diff) | |
download | python-jenkins-job-builder-4d90c187a945c04b9949d5ee7738a049dd634897.tar.gz python-jenkins-job-builder-4d90c187a945c04b9949d5ee7738a049dd634897.tar.xz python-jenkins-job-builder-4d90c187a945c04b9949d5ee7738a049dd634897.zip |
Auto-generated output from python-black
Please review the following patch containing the code changes in
the repo. This patch is a transition patch and is the auto-generated
output of the python-black tool.
Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Diffstat (limited to 'tests/xml_config/test_xml_config.py')
-rw-r--r-- | tests/xml_config/test_xml_config.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/xml_config/test_xml_config.py b/tests/xml_config/test_xml_config.py index 76858db2..6f8fd0b7 100644 --- a/tests/xml_config/test_xml_config.py +++ b/tests/xml_config/test_xml_config.py @@ -23,23 +23,23 @@ from tests import base class TestXmlJobGeneratorExceptions(base.BaseTestCase): - fixtures_path = os.path.join(os.path.dirname(__file__), 'exceptions') + fixtures_path = os.path.join(os.path.dirname(__file__), "exceptions") def test_invalid_project(self): self.conf_filename = None config = self._get_config() yp = parser.YamlParser(config) - yp.parse(os.path.join(self.fixtures_path, - "invalid_project.yaml")) + yp.parse(os.path.join(self.fixtures_path, "invalid_project.yaml")) reg = registry.ModuleRegistry(config) job_data, _ = yp.expandYaml(reg) # Generate the XML tree xml_generator = xml_config.XmlJobGenerator(reg) - e = self.assertRaises(errors.JenkinsJobsException, - xml_generator.generateXML, job_data) + e = self.assertRaises( + errors.JenkinsJobsException, xml_generator.generateXML, job_data + ) self.assertIn("Unrecognized project-type:", str(e)) def test_invalid_view(self): @@ -54,8 +54,9 @@ class TestXmlJobGeneratorExceptions(base.BaseTestCase): # Generate the XML tree xml_generator = xml_config.XmlViewGenerator(reg) - e = self.assertRaises(errors.JenkinsJobsException, - xml_generator.generateXML, view_data) + e = self.assertRaises( + errors.JenkinsJobsException, xml_generator.generateXML, view_data + ) self.assertIn("Unrecognized view-type:", str(e)) def test_incorrect_template_params(self): @@ -63,8 +64,7 @@ class TestXmlJobGeneratorExceptions(base.BaseTestCase): config = self._get_config() yp = parser.YamlParser(config) - yp.parse(os.path.join(self.fixtures_path, - "failure_formatting_component.yaml")) + yp.parse(os.path.join(self.fixtures_path, "failure_formatting_component.yaml")) reg = registry.ModuleRegistry(config) reg.set_parser_data(yp.data) |