Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/test_cloud_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ def cmd():
click.echo('{"score": 1}')
emit_cloud_note("text")

result = CliRunner().invoke(cmd)
try:
runner = CliRunner(mix_stderr=False) # click < 8.2 mixes stderr into stdout by default
except TypeError: # click >= 8.2 removed the argument: the streams are always separate
runner = CliRunner()
result = runner.invoke(cmd)
assert result.stdout == '{"score": 1}\n'
assert CLOUD_NOTE in result.stderr

Expand Down