You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In general for testing model.do(blob, ignore_missing=False) (f.e test_videos_video.py:33) should work to catch all fields which were missed in the analysis, and have no implemented rules, to avoid loosing data during cleaning or migration.
How to recreate:
put in tests a field with no matching rule.
call in tests method model.do with ignore_missing=False.
GroupableOrderedDict will create key __ordered__ for the parsed XML and it will be recognised as a MARC field name later, which has no rule -> ignore_missing will raise and exception for that "missing" rule.
Temporarily solved with setting ordered=False in the GroupableOrderedDict -> (#155) @egabancho mentioned of having similar issue in the past.
The text was updated successfully, but these errors were encountered:
In general for testing
model.do(blob, ignore_missing=False)
(f.e test_videos_video.py:33) should work to catch all fields which were missed in the analysis, and have no implemented rules, to avoid loosing data during cleaning or migration.How to recreate:
model.do
withignore_missing=False
.GroupableOrderedDict
will create key__ordered__
for the parsed XML and it will be recognised as a MARC field name later, which has no rule -> ignore_missing will raise and exception for that "missing" rule.Temporarily solved with setting
ordered=False
in theGroupableOrderedDict
-> (#155)@egabancho mentioned of having similar issue in the past.
The text was updated successfully, but these errors were encountered: