Skip to content

Commit 3b5c105

Browse files
pre-commit-ci[bot]atodorov
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5ff4728 commit 3b5c105

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

setup.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ def get_version():
99
version_py_path = os.path.join("tcms_junit_plugin", "version.py")
1010
with open(version_py_path, encoding="utf-8") as version_file:
1111
version = version_file.read()
12-
return version.replace(" ", "").replace("__version__=", "").strip().strip("'").strip('"')
12+
return (
13+
version.replace(" ", "")
14+
.replace("__version__=", "")
15+
.strip()
16+
.strip("'")
17+
.strip('"')
18+
)
1319

1420

1521
with open("README.rst", encoding="utf-8") as readme:

tcms_junit_plugin/__init__.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ def parse(
132132
summary = self.testcase_summary(xml_suite, xml_case)[:255]
133133

134134
test_case, _ = self.backend.test_case_get_or_create(summary)
135-
self.backend.add_test_case_to_plan(test_case["id"], self.backend.plan_id)
135+
self.backend.add_test_case_to_plan(
136+
test_case["id"], self.backend.plan_id
137+
)
136138

137139
comment = self.backend.created_by_text
138140
if not xml_case.result:
@@ -164,7 +166,9 @@ def parse(
164166
test_case["id"],
165167
self.backend.run_id,
166168
):
167-
start_date, stop_date = self.testexecution_timestamps(xml_suite, xml_case)
169+
start_date, stop_date = self.testexecution_timestamps(
170+
xml_suite, xml_case
171+
)
168172
self.backend.update_test_execution(
169173
execution["id"],
170174
status_id,
@@ -198,7 +202,9 @@ def main(argv):
198202
help="Template summary from testcase, eg %(default)s.",
199203
default=DEFAULT_TEMPLATE,
200204
)
201-
parser.add_argument("filename.xml", type=str, nargs="+", help="XML file(s) to parse")
205+
parser.add_argument(
206+
"filename.xml", type=str, nargs="+", help="XML file(s) to parse"
207+
)
202208

203209
args = parser.parse_args(argv[1:])
204210

0 commit comments

Comments
 (0)