(cls)
| 310 | |
| 311 | @classmethod |
| 312 | def get_current_session(cls) -> "ScriptModeSession": |
| 313 | if cls.instance is None: |
| 314 | raise SessionNotFoundException("Can't find current session. It might be a bug.") |
| 315 | if cls.instance.closed(): |
| 316 | raise SessionClosedException() |
| 317 | return cls.instance |
| 318 | |
| 319 | @classmethod |
| 320 | def get_current_task_id(cls): |
no test coverage detected