- Timestamp:
- 11/04/25 20:20:01 (2 months ago)
- Branches:
- master
- Children:
- 73d392f
- Parents:
- bf30018
- Location:
- tests
- Files:
-
- 2 edited
-
test_id_lifecycle.py (modified) (1 diff)
-
test_persistance_integrity.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/test_id_lifecycle.py
rbf30018 r4af65b0 79 79 # simulate tampering 80 80 q.text = "Tampered text" 81 print(FlexoEntity.debug_integrity(q))82 81 assert not FlexoEntity.verify_integrity(q) 83 82 -
tests/test_persistance_integrity.py
rbf30018 r4af65b0 34 34 """ 35 35 json_str = approved_question.to_json() 36 print("JSON", json_str)37 36 loaded = SingleChoiceQuestion.from_json(json_str) 38 37 39 print("Approved", approved_question.text_seed)40 print("Loaded", loaded.text_seed)41 38 # Fingerprint and state should match — integrity must pass 42 39 assert SingleChoiceQuestion.verify_integrity(loaded)
Note:
See TracChangeset
for help on using the changeset viewer.
