Skip to content

Commit

Permalink
Update tests/publishing/test_uploader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
neersighted committed Sep 18, 2022
1 parent 3f11670 commit 77a7e3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/publishing/test_uploader.py
Expand Up @@ -93,7 +93,9 @@ def test_uploader_registers_for_appropriate_400_errors(
assert register.call_count == 1


def test_uploader_properly_handles_file_not_existing(mocker, http, uploader):
def test_uploader_properly_handles_file_not_existing(
mocker: MockerFixture, http: type[httpretty.httpretty], uploader: Uploader
):
mocker.patch("pathlib.Path.is_file", return_value=False)

with pytest.raises(UploadError) as e:
Expand Down

0 comments on commit 77a7e3a

Please sign in to comment.