Skip to content

Commit

Permalink
py2, py3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeauchesne committed Sep 14, 2020
1 parent 4940d6c commit fed7f56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions campbot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,17 +558,17 @@ def report(self, url_or_filename, lang):
failing_docs.append(document)

if len(failing_docs) != 0:
stdout_report.append(f"{test.name}")
forum_report.append(f"* {test.name}")
stdout_report.append(test.name)
forum_report.append("* {}".format(test.name))

failing_docs.sort(key=lambda d: d.get_title(lang))

for document in failing_docs:
url = document.get_url()
title = document.get_title(lang)

stdout_report.append(f" {url}\t {title}")
forum_report.append(f" * [{title}]({url})")
stdout_report.append(" {}\t {}".format(url, title))
forum_report.append(" * [{}]({})".format(title, url))

print("\n".join(stdout_report))

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def get_message(filename, overwrite_properties=None):
data = json.load(io.open(filename, encoding="utf-8"))

if overwrite_properties:
data = {**data, **overwrite_properties}
data.update(overwrite_properties)

return data

Expand Down

0 comments on commit fed7f56

Please sign in to comment.