Skip to content

Commit cdd908f

Browse files
committed
Remove default value argument
1 parent 6f553d3 commit cdd908f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyartifactory/models/artifact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Checksums(BaseModel):
2121
sha256: Optional[str] = None
2222

2323
@classmethod
24-
def generate(cls, file_: Path, algorithms: List[str] = ["sha1", "sha256", "md5"]) -> Checksums:
24+
def generate(cls, file_: Path, algorithms: List[str]) -> Checksums:
2525
block_size: int = 65536
2626
mapping: dict[str, Callable[[], Any]] = {"md5": hashlib.md5, "sha1": hashlib.sha1, "sha256": hashlib.sha256}
2727
results = {}

tests/test_artifacts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def test_update_property_fail_bad_value():
601601
],
602602
)
603603
def test_checksum_defined_file(file_path: Path, expected_sha1: str, expected_md5: str, expected_sha256: str):
604-
result = Checksums.generate(file_path)
604+
result = Checksums.generate(file_path, ["sha1", "sha256", "md5"])
605605
expected = Checksums(
606606
sha1=expected_sha1,
607607
md5=expected_md5,

0 commit comments

Comments
 (0)