Skip to content

Commit

Permalink
Add platform info to test summary
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Mar 20, 2021
1 parent e36f98d commit 4d67632
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytest_discord/plugin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
import io
import os
import platform
import time
from collections import defaultdict
from datetime import datetime
Expand Down Expand Up @@ -254,7 +255,9 @@ def _make_header(tests: int) -> str:
workflow = os.environ.get("GITHUB_WORKFLOW")
msgs.append("({} {})".format(repo, workflow))

return "test summary info: {}".format(" ".join(msgs))
return "test summary info: {}: {} Python {}".format(
" ".join(msgs), platform.system(), ".".join(platform.python_version_tuple())
)


def _make_summary_footer(reporter: TerminalReporter, verbosity_level: int) -> str:
Expand Down

0 comments on commit 4d67632

Please sign in to comment.