Example #1
0
    def test_editor_mode_entered_from_initial(
        self, mocker: MockerFixture, controller: Controller
    ) -> None:
        editor = mocker.Mock()

        controller.enter_editor_mode_with(editor)

        assert controller.is_in_editor_mode()
        assert controller.current_editor() == editor
Example #2
0
 def test_current_editor_error_if_no_editor(self, controller: Controller) -> None:
     with pytest.raises(AssertionError):
         controller.current_editor()