Skip to content

Commit b5cf8f3

Browse files
committed
Fix CKAN test
1 parent 60a6a76 commit b5cf8f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/hdx/api/test_ckan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ def create_resource():
283283
resource = resources[i]
284284
assert updated_resource["name"] == resource["name"]
285285
assert updated_resource.get_format() == resource.get_format()
286-
assert updated_resource["url_type"].lower() == resource["url_type"]
287286
url = resource.get("url")
288287
if url:
289288
if "humdata" in url:
@@ -293,6 +292,7 @@ def create_resource():
293292
else:
294293
assert "humdata" in updated_resource["url"]
295294
if i != 7:
295+
assert updated_resource["url_type"].lower() == resource["url_type"]
296296
assert updated_resource.get("size") == resource.get("size")
297297
assert updated_resource.get("hash") == resource.get("hash")
298298

0 commit comments

Comments
 (0)