Fix BatchCredentials tests: add required reference_photo
- Add sample_reference_photo fixture for test data - Update sample_credentials fixture to include reference_photo - Update all BatchCredentials test dicts to include reference_photo - Add 'phrase' as legacy key in BatchCredentials.from_dict() 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -105,10 +105,10 @@ class BatchCredentials:
|
||||
"""
|
||||
Create BatchCredentials from a dictionary.
|
||||
|
||||
Handles both v3.2.0 format (passphrase) and legacy format (day_phrase).
|
||||
Handles both v3.2.0 format (passphrase) and legacy formats (day_phrase, phrase).
|
||||
"""
|
||||
# Handle legacy 'day_phrase' key
|
||||
passphrase = data.get('passphrase') or data.get('day_phrase', '')
|
||||
# Handle legacy 'day_phrase' and 'phrase' keys
|
||||
passphrase = data.get('passphrase') or data.get('day_phrase') or data.get('phrase', '')
|
||||
|
||||
return cls(
|
||||
reference_photo=data['reference_photo'],
|
||||
|
||||
Reference in New Issue
Block a user