File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ def hash_sha256(dictionary: dict) -> int:
122
122
"""
123
123
124
124
# Convert the dictionary to a JSON string
125
- json_str : str = json .dumps (dictionary , sort_keys = True )
125
+ # default needed because of dates
126
+ json_str : str = json .dumps (dictionary , sort_keys = True , default = str )
126
127
127
128
# Convert the JSON string to bytes
128
129
json_bytes : bytes = json_str .encode ("utf-8" )
Original file line number Diff line number Diff line change @@ -104,6 +104,9 @@ def checkResolution(
104
104
105
105
self .assertResolution (citations , expected_resolution_dict )
106
106
107
+ def test_issue_167 (self ):
108
+ self .checkResolution ((0 , "25 Texas L.Rev. 199" ))
109
+
107
110
def test_full_resolution (self ):
108
111
# Test resolving a single, full citation
109
112
self .checkResolution (
You can’t perform that action at this time.
0 commit comments