Skip to content

Commit

Permalink
Revert the diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
IanHopkinson committed Mar 12, 2024
1 parent 0c1b653 commit c19a979
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions tests/hdx/api/test_ckan.py
Expand Up @@ -232,19 +232,18 @@ def create_resource():
for i, updated_resource in enumerate(updated_resources):
resource = resources[i]
print(updated_resource["name"], resource["name"], flush=True)
# assert updated_resource["name"] == resource["name"]
# assert updated_resource.get_format() == resource.get_format()
# assert updated_resource["url_type"].lower() == resource["url_type"]
# url = resource.get("url")
# if url:
# if "humdata" in url:
# assert "humdata" in updated_resource["url"]
# else:
# assert "humdata" not in updated_resource["url"]
# else:
# assert "humdata" in updated_resource["url"]
assert updated_resource["name"] == resource["name"]
assert updated_resource.get_format() == resource.get_format()
assert updated_resource["url_type"].lower() == resource["url_type"]
url = resource.get("url")
if url:
if "humdata" in url:
assert "humdata" in updated_resource["url"]
else:
assert "humdata" not in updated_resource["url"]
else:
assert "humdata" in updated_resource["url"]

assert False
# modify dataset again starting with existing dataset
title = "HDX Python API test changed again"
dataset["title"] = title
Expand Down

0 comments on commit c19a979

Please sign in to comment.