mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Updated pytest
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
56ad4da268
commit
d592956767
1 changed files with 1 additions and 9 deletions
|
@ -33,11 +33,3 @@ def md5(source):
|
|||
with open(source, "rb") as file_to_check:
|
||||
data = file_to_check.read()
|
||||
return hashlib.md5(data).hexdigest()
|
||||
|
||||
|
||||
def test_md5(source="superuser.py"):
|
||||
"""Testing hashing with pytest"""
|
||||
source = source.replace("%2B", "+")
|
||||
with open(source, "rb") as file_to_check:
|
||||
data = file_to_check.read()
|
||||
assert hashlib.md5(data).hexdigest() == "e6cebdf37fbc1b8e9d3c5e3e53b300c1"
|
||||
|
|
Loading…
Add table
Reference in a new issue