Skip to content

Commit 61a11ec

Browse files
committed
mypy
1 parent 685f5d2 commit 61a11ec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mypy-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
aiohttp==3.12.6
22
alive_progress # untyped :(
33
mypy==1.16.0
4+
pyfakefs
45
pytest
56
pytest-mock
67
python-gnupg # untyped :(

tests/test_add_to_pydotorg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from pathlib import Path
33

44
import pytest
5+
from pyfakefs.fake_filesystem import FakeFilesystem
56

67
os.environ["AUTH_INFO"] = "test_username:test_api_key"
78

@@ -80,7 +81,7 @@ def test_minor_version_tuple(release: str, expected: tuple[int, int]) -> None:
8081
assert add_to_pydotorg.minor_version_tuple(release) == expected
8182

8283

83-
def test_list_files(fs) -> None:
84+
def test_list_files(fs: FakeFilesystem) -> None:
8485
# Arrange
8586
fs.add_real_file("tests/ftp-file-list.txt")
8687
fake_files = Path("tests/ftp-file-list.txt").read_text().splitlines()

0 commit comments

Comments
 (0)