From 77a7e3a21ef57abc6cd6ccff4479ea4cc28e902f Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Sun, 18 Sep 2022 00:20:40 -0600 Subject: [PATCH] Update tests/publishing/test_uploader.py --- tests/publishing/test_uploader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/publishing/test_uploader.py b/tests/publishing/test_uploader.py index f728e6027ab..fa970ecee91 100644 --- a/tests/publishing/test_uploader.py +++ b/tests/publishing/test_uploader.py @@ -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: