Skip to content

Commit d180533

Browse files
author
Marc-André Rivet
committed
hash
1 parent e0847f5 commit d180533

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: dash/fingerprint.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
)
88

99

10-
def build_fingerprint(path, version, hash):
10+
def build_fingerprint(path, version, hash_value):
1111
res = build_regex.match(path)
1212

1313
return '{}.v{}m{}{}'.format(
1414
res.group('filename'),
1515
str(version).replace('.', '_'),
16-
hash,
16+
hash_value,
1717
res.group('extension'),
1818
)
1919

Diff for: tests/unit/test_fingerprint.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from dash.fingerprint import build_fingerprint, check_fingerprint
33

44
version = 1
5-
hash = 1
5+
hash_value = 1
66

77
valid_resources = [
88
{'path': '[email protected]', 'fingerprint': '[email protected]'},
@@ -37,7 +37,7 @@
3737
def test_fingerprint():
3838
for resource in valid_resources:
3939
# The fingerprint matches expectations
40-
fingerprint = build_fingerprint(resource.get('path'), resource.get('version', version), resource.get('hash', hash))
40+
fingerprint = build_fingerprint(resource.get('path'), resource.get('version', version), resource.get('hash', hash_value))
4141
assert fingerprint == resource.get('fingerprint')
4242

4343
(original_path, has_fingerprint) = check_fingerprint(fingerprint)

0 commit comments

Comments
 (0)