Skip to content

Commit

Permalink
Revert diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
IanHopkinson committed Mar 12, 2024
1 parent f9c218c commit 53ebc23
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/hdx/api/test_ckan.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,16 @@ def create_resource():
resources = dataset.get_resources()
for i, resource in enumerate(resources):
print(resource["name"], flush=True)
# assert resource["name"] == f"test_resource_{i}"
# if i % 2 == 0:
# assert resource.get_format() == "csv"
# assert resource["url_type"] == "upload"
# assert "humdata" in resource["url"]
# else:
# assert resource.get_format() == "xlsx"
# assert resource["url_type"] == "api"
# assert "humdata" not in resource["url"]
assert resource["name"] == f"test_resource_{i}"
if i % 2 == 0:
assert resource.get_format() == "csv"
assert resource["url_type"] == "upload"
assert "humdata" in resource["url"]
else:
assert resource.get_format() == "xlsx"
assert resource["url_type"] == "api"
assert "humdata" not in resource["url"]

assert False
# modify dataset
dataset_id = dataset["id"]
title = "HDX Python API test changed"
Expand Down

0 comments on commit 53ebc23

Please sign in to comment.