diff --git a/ckanext/xloader/tests/test_loader.py b/ckanext/xloader/tests/test_loader.py index 4ceaec13..8bc43fe5 100644 --- a/ckanext/xloader/tests/test_loader.py +++ b/ckanext/xloader/tests/test_loader.py @@ -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"] = {} @@ -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,