Skip to content

Commit

Permalink
Fix typos in tests (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng authored May 15, 2022
1 parent 4223ee1 commit b0b932f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()] == [
Expand Down Expand Up @@ -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()] == [
Expand Down
4 changes: 2 additions & 2 deletions tests/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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]
Expand Down

0 comments on commit b0b932f

Please sign in to comment.