Skip to content

Commit

Permalink
debug tests...
Browse files Browse the repository at this point in the history
  • Loading branch information
JVickery-TBS committed Dec 9, 2024
1 parent 4a35fc8 commit 4886902
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ckanext/xloader/tests/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,11 @@ def test_load_with_no_strip_white(self, Session):
None, {"resource_id": resource_id, "limit": 0}
)
fields = [f for f in rec["fields"] if not f["id"].startswith("_")]
print(' ')
print('DEBUGGING::step 1')
print(' ')
print(fields)
print(' ')
for field in fields:
if "info" not in field:
field["info"] = {}
Expand All @@ -1579,6 +1584,18 @@ def test_load_with_no_strip_white(self, Session):
{"resource_id": resource_id, "force": True, "fields": fields},
)

rec = p.toolkit.get_action("datastore_search")(
None, {"resource_id": resource_id, "limit": 0}
)
fields = [f for f in rec["fields"] if not f["id"].startswith("_")]
print(' ')
print('DEBUGGING::step 2')
print(' ')
print(fields)
print(' ')

assert False

# Load it again with new strip_extra_white
fields = loader.load_table(
csv_filepath,
Expand Down

0 comments on commit 4886902

Please sign in to comment.