예제 #1
0
 def load(filename):
     handler = bahs.ServerLifecycleHandler(filename=filename)
     result['handler'] = handler
예제 #2
0
 def load(filename):
     handler = result['handler'] = bahs.ServerLifecycleHandler(
         filename=filename)
     if handler.failed:
         raise RuntimeError(handler.error)
예제 #3
0
 def test_missing_filename_raises(self) -> None:
     with pytest.raises(ValueError):
         bahs.ServerLifecycleHandler()
예제 #4
0
 def load(filename):
     handler = bahs.ServerLifecycleHandler(filename=filename)
     handler.modify_document(doc)
     out['handler'] = handler