Skip to content

Commit c0c2ffb

Browse files
committed
Add comment to make clear this is fake test data
1 parent 2d1c5d0 commit c0c2ffb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/fake-ftp-files.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Test data only, doesn't need to be updated for each release
12
Python-3.14.0a1.tar.xz
23
Python-3.14.0a1.tar.xz.crt
34
Python-3.14.0a1.tar.xz.sig

tests/test_add_to_pydotorg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def test_list_files(fs: FakeFilesystem) -> None:
8686
fs.add_real_file("tests/fake-ftp-files.txt")
8787
fake_files = Path("tests/fake-ftp-files.txt").read_text().splitlines()
8888
for fn in fake_files:
89+
if fn.startswith("#"): # comment
90+
continue
91+
8992
file_path = Path(add_to_pydotorg.ftp_root) / "3.14.0" / fn
9093
if fn.endswith("/"):
9194
fs.create_dir(file_path)

0 commit comments

Comments
 (0)