Skip to content

Commit b0b932f

Browse files
authored
Fix typos in tests (#898)
1 parent 4223ee1 commit b0b932f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_exception_handling(monkeypatch, capsys):
2727

2828
captured = capsys.readouterr()
2929

30-
# Hard-coding control characters for red text; couldn't find a succint alternative.
30+
# Hard-coding control characters for red text; couldn't find a succinct alternative.
3131
# Removing trailing whitespace on wrapped lines; trying to test it was ugly.
3232
level = "\x1b[31mERROR \x1b[0m"
3333
assert [line.rstrip() for line in captured.out.splitlines()] == [
@@ -57,7 +57,7 @@ def test_http_exception_handling(monkeypatch, capsys):
5757

5858
captured = capsys.readouterr()
5959

60-
# Hard-coding control characters for red text; couldn't find a succint alternative.
60+
# Hard-coding control characters for red text; couldn't find a succinct alternative.
6161
# Removing trailing whitespace on wrapped lines; trying to test it was ugly.
6262
level = "\x1b[31mERROR \x1b[0m"
6363
assert [line.rstrip() for line in captured.out.splitlines()] == [

tests/test_upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def test_success_with_pre_signed_distribution(upload_settings, stub_repository):
170170
)
171171
assert result is None
172172

173-
# The signature shoud be added via package.add_gpg_signature()
173+
# The signature should be added via package.add_gpg_signature()
174174
package = stub_repository.upload.calls[0].args[0]
175175
assert package.gpg_signature == (
176176
"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):
194194
result = upload.upload(upload_settings, [helpers.WHEEL_FIXTURE])
195195
assert result is None
196196

197-
# The signature shoud be added via package.sign()
197+
# The signature should be added via package.sign()
198198
package = stub_repository.upload.calls[0].args[0]
199199
assert len(package.run_gpg.calls) == 1
200200
assert helpers.WHEEL_FIXTURE in package.run_gpg.calls[0].args[1]

0 commit comments

Comments
 (0)