diff --git a/testutils/github.py b/testutils/github.py
index d59761c..7d95fc2 100644
--- a/testutils/github.py
+++ b/testutils/github.py
@@ -210,9 +210,9 @@ def create_comment(github, issue):
def _generate_outcome_summary(pytest_report, task):
# pylint: disable=C0209
return "{a_open}{outcome}{a_close}".format(
- a_open=''.format(task["outcome_url"])
- if "outcome_url" in task
- else '',
+ a_open=(
+ ''.format(task["outcome_url"]) if "outcome_url" in task else ''
+ ),
outcome=pytest_report.outcome.upper(),
a_close='' if "outcome_url" in task else '',
)
diff --git a/testutils/tests/test_github.py b/testutils/tests/test_github.py
index 824abe2..e3930b3 100644
--- a/testutils/tests/test_github.py
+++ b/testutils/tests/test_github.py
@@ -983,9 +983,11 @@ def test_upload_results(
monkeypatch.setattr(
testutils.github,
"get_results_gist",
- lambda *args, **kwargs: (testutils.github.Git('.'), "", "the_gist_id")
- if gist_created
- else (None, None, None),
+ lambda *args, **kwargs: (
+ (testutils.github.Git('.'), "", "the_gist_id")
+ if gist_created
+ else (None, None, None)
+ ),
)
monkeypatch.setattr(
testutils.github, "upload_result_content", lambda *args, **kwargs: head