Skip to content

Commit

Permalink
fixup test data
Browse files Browse the repository at this point in the history
  • Loading branch information
ashimali committed Jul 29, 2024
1 parent 1ee8c8e commit 2332174
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/integration/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ def _transform_dataset_to_response(dataset, is_geojson=False):
dataset["end-date"] = dataset.pop("end_date") or ""
dataset["entry-date"] = dataset.pop("entry_date") or ""
dataset["name"] = dataset.pop("name") or ""
dataset["github_discussion"] = dataset.pop("github_discussion") or ""
dataset["entity_minimum"] = dataset.pop("entity_minimum") or ""
dataset["entity_maximum"] = dataset.pop("entity_maximum") or ""
dataset["phase"] = dataset.pop("phase") or ""
dataset["replacement_dataset"] = dataset.pop("replacement_dataset") or ""
dataset["version"] = dataset.pop("version") or ""

if is_geojson:
dataset["organisation-entity"] = dataset.pop("organisation_entity") or ""
dataset["entity"] = int(dataset["entity"])
Expand Down

0 comments on commit 2332174

Please sign in to comment.