From 84787b59ed875aa212cf8df35e5a6a8d45f41d25 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Sun, 15 May 2022 16:48:14 +0800 Subject: [PATCH] Fix typos in tests --- tests/test_main.py | 4 ++-- tests/test_upload.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_main.py b/tests/test_main.py index 3151da0c..c320e889 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -27,7 +27,7 @@ def test_exception_handling(monkeypatch, capsys): captured = capsys.readouterr() - # Hard-coding control characters for red text; couldn't find a succint alternative. + # Hard-coding control characters for red text; couldn't find a succinct alternative. # Removing trailing whitespace on wrapped lines; trying to test it was ugly. level = "\x1b[31mERROR \x1b[0m" assert [line.rstrip() for line in captured.out.splitlines()] == [ @@ -57,7 +57,7 @@ def test_http_exception_handling(monkeypatch, capsys): captured = capsys.readouterr() - # Hard-coding control characters for red text; couldn't find a succint alternative. + # Hard-coding control characters for red text; couldn't find a succinct alternative. # Removing trailing whitespace on wrapped lines; trying to test it was ugly. level = "\x1b[31mERROR \x1b[0m" assert [line.rstrip() for line in captured.out.splitlines()] == [ diff --git a/tests/test_upload.py b/tests/test_upload.py index d5cd64aa..29e39e02 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -170,7 +170,7 @@ def test_success_with_pre_signed_distribution(upload_settings, stub_repository): ) assert result is None - # The signature shoud be added via package.add_gpg_signature() + # The signature should be added via package.add_gpg_signature() package = stub_repository.upload.calls[0].args[0] assert package.gpg_signature == ( "twine-1.5.0-py2.py3-none-any.whl.asc", @@ -194,7 +194,7 @@ def test_success_when_gpg_is_run(upload_settings, stub_repository, monkeypatch): result = upload.upload(upload_settings, [helpers.WHEEL_FIXTURE]) assert result is None - # The signature shoud be added via package.sign() + # The signature should be added via package.sign() package = stub_repository.upload.calls[0].args[0] assert len(package.run_gpg.calls) == 1 assert helpers.WHEEL_FIXTURE in package.run_gpg.calls[0].args[1]