simplified deserialisation
Python CI / test (push) Successful in 1m40s
Lint / lint (push) Successful in 1m29s
Tests / test (3.11) (push) Successful in 1m48s
Tests / test (3.12) (push) Successful in 1m51s
Tests / test (3.13) (push) Successful in 1m46s
Tests / test (3.14) (push) Successful in 1m29s
Python CI / test (push) Successful in 1m40s
Lint / lint (push) Successful in 1m29s
Tests / test (3.11) (push) Successful in 1m48s
Tests / test (3.12) (push) Successful in 1m51s
Tests / test (3.13) (push) Successful in 1m46s
Tests / test (3.14) (push) Successful in 1m29s
This commit is contained in:
@@ -734,6 +734,7 @@ class TestCommandHistory:
|
||||
"""Test deserializing unknown command type returns None and continues"""
|
||||
history = CommandHistory()
|
||||
mock_project = Mock()
|
||||
mock_project.pages = []
|
||||
|
||||
data = {
|
||||
"undo_stack": [
|
||||
@@ -797,6 +798,7 @@ class TestCommandHistory:
|
||||
|
||||
# Deserialize
|
||||
mock_project = Mock()
|
||||
mock_project.pages = []
|
||||
new_history = CommandHistory()
|
||||
new_history.deserialize(data, mock_project)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user