-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
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.dowithignore_missing=False. GroupableOrderedDictwill 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.