(path: Path, env: Environment, read_only: bool = False)
| 557 | |
| 558 | @contextmanager |
| 559 | def open_session(path: Path, env: Environment, read_only: bool = False) -> Iterator[Session]: |
| 560 | session = Session(path, env, session_id='test', bound_host=DUMMY_HOST) |
| 561 | session.load() |
| 562 | yield session |
| 563 | if not read_only: |
| 564 | session.save() |
| 565 | |
| 566 | |
| 567 | @contextmanager |
no test coverage detected