diff options
author | David Lord <davidism@gmail.com> | 2020-04-19 23:54:14 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2020-04-20 07:12:53 -0700 |
commit | 9897d81d0830f2048360cbd45993de1b37ce7371 (patch) | |
tree | 1ae0d18e075740b808c69167e97583fde9dd55e3 /tests/test_testing.py | |
parent | b444e6355ec50417546f42138bb833d1e9e8b306 (diff) | |
download | click-9897d81d0830f2048360cbd45993de1b37ce7371.tar.gz |
f-strings everywhere
Diffstat (limited to 'tests/test_testing.py')
-rw-r--r-- | tests/test_testing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py index 5b2c813..7360473 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -125,7 +125,7 @@ def test_with_color(): assert not result.exception result = runner.invoke(cli, color=True) - assert result.output == "{}\n".format(click.style("hello world", fg="blue")) + assert result.output == f"{click.style('hello world', fg='blue')}\n" assert not result.exception @@ -213,7 +213,7 @@ def test_exit_code_and_output_from_sys_exit(): def test_env(): @click.command() def cli_env(): - click.echo("ENV={}".format(os.environ["TEST_CLICK_ENV"])) + click.echo(f"ENV={os.environ['TEST_CLICK_ENV']}") runner = CliRunner() |