Skip to content

Commit 9d60cc9

Browse files
authored
Fix sha256sum -> sha256_sum to match Django model (#322)
1 parent 8f50dd4 commit 9d60cc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

add_to_pydotorg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def build_file_dict(
266266
"is_source": os_pk == 3,
267267
"url": download_root + f"{base_version(release)}/{rfile}",
268268
"md5_sum": md5sum_for(filename),
269-
"sha256sum": sha256sum_for(filename),
269+
"sha256_sum": sha256sum_for(filename),
270270
"filesize": filesize_for(filename),
271271
"download_button": add_download,
272272
}

tests/test_add_to_pydotorg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_build_file_dict(tmp_path: Path) -> None:
7171
"is_source": False,
7272
"url": f"{release_url}/test-artifact.txt",
7373
"md5_sum": "3e25960a79dbc69b674cd4ec67a72c62",
74-
"sha256sum": "64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c",
74+
"sha256_sum": "64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c",
7575
"filesize": 11,
7676
"download_button": True,
7777
"sigstore_bundle_file": f"{release_url}/test-artifact.txt.sigstore",

0 commit comments

Comments
 (0)