コード例 #1
0
ファイル: test_handler.py プロジェクト: zebulon2/bokeh
 def test_modify_document_abstract(self) -> None:
     h = bahh.Handler()
     with pytest.raises(NotImplementedError):
         h.modify_document("doc")
コード例 #2
0
ファイル: test_handler.py プロジェクト: zmj2008/bokeh
 def test_default_hooks_return_none(self):
     h = bahh.Handler()
     assert h.on_server_loaded("context") is None
     assert h.on_server_unloaded("context") is None
     assert h.on_session_created("context") is None
     assert h.on_session_destroyed("context") is None
コード例 #3
0
ファイル: test_handler.py プロジェクト: haohuachang/bokeh
 async def test_default_sesssion_hooks_return_none(self) -> None:
     h = bahh.Handler()
     assert await h.on_session_created("context") is None
     assert await h.on_session_destroyed("context") is None
コード例 #4
0
ファイル: test_handler.py プロジェクト: haohuachang/bokeh
 def test_process_request(self) -> None:
     h = bahh.Handler()
     assert h.process_request("request") == {}
コード例 #5
0
ファイル: test_handler.py プロジェクト: haohuachang/bokeh
 def test_default_server_hooks_return_none(self) -> None:
     h = bahh.Handler()
     assert h.on_server_loaded("context") is None
     assert h.on_server_unloaded("context") is None