We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d0298b commit a7fe51fCopy full SHA for a7fe51f
tests/eca2csvTest.py
@@ -22,7 +22,10 @@ def testMethod():
22
if hash != '87defdce3b585d4fe3d59be8a07d61e1':
23
return False, f"'climate-noheader-no2020.txt' does not contain exactly what is expected"
24
with open('climate-cleaned.txt') as cnh:
25
- hash = hashlib.md5(cnh.read().strip().encode('utf-8')).hexdigest()
+ content = cnh.read().strip()
26
+ if not '19010225' in content:
27
+ return False, "'climate-cleaned.txt' appears to be missing data for 19010225"
28
+ hash = hashlib.md5(content.encode('utf-8')).hexdigest()
29
if hash != 'aa7138f0b4e8eb25a5982afe21ef79f0':
30
return False, f"'climate-cleaned.txt' does not contain exactly what is expected"
31
with open('climate.csv') as cnh:
0 commit comments