Skip to content

Commit

Permalink
Updated test_ctl_core.py (now sha256 instead of md5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Halvani committed Aug 26, 2024
1 parent b86af0b commit 253ded0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_ctl_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def test_svg_export(self):
file_name = "tree.svg"
sentence = "Python is an awesome coding language!"
ConstituentTree(sentence, self.nlp).export_tree(file_name)

with open(file_name, "rb") as file:
md5_hash = hashlib.md5(file.read()).hexdigest()
assert md5_hash == "d3e9fdbe78fee450f212d605584f3b2a"
sha256_hash = hashlib.sha256(file.read()).hexdigest()
assert sha256_hash == "21de07e261ac4b95b8a589530fa73e4762639e29dc1f94c8f0598fa48fc5767f"
os.remove(file_name)

0 comments on commit 253ded0

Please sign in to comment.