fix(ci): expect a blank material grade on migrated legacy nests

Server schema v8 adds materialGrade, so the migrated legacy records now
report it and the server-image smoke's manifest comparison failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-10-22 21:17:17 -04:00
1 parent 069efc2368
commit c188014a30
1 file changed
+3 -1
+3 -1
View File
@@ -34,7 +34,9 @@ def create(directory):
metadata: dict[str, object] = dict(zip(('id', 'name', 'customer', 'dateCreated', 'dateModified', 'material',
'thickness', 'status', 'plateCount', 'partCount', 'comments',
'madeBy', 'fileSize', 'savedAt'), fields))
metadata.update(status='toBeCut', revision=1, deleted=False, restoredFromRevision=None)
# Columns added by later migrations read back as their defaults.
metadata.update(status='toBeCut', revision=1, deleted=False, restoredFromRevision=None,
materialGrade='')
archive = {'sha256': hashlib.sha256(data).hexdigest(), 'bytes': len(data)}
expected.append({'current': metadata, 'archive': archive,
'revisions': [{'metadata': metadata, 'archive': archive}]})