Skip to content

Commit

Permalink
bring back yield
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed Mar 19, 2024
1 parent 691e7ab commit 0308801
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ def setUpClass(cls) -> Generator:
cls.view = window.open_file(filename)
yield {"condition": lambda: not cls.view.is_loading(), "timeout": TIMEOUT_TIME}
yield cls.ensure_document_listener_created
yield {
"condition": lambda: cls.wm.get_session(cls.config.name, filename) is not None,
"timeout": TIMEOUT_TIME}
cls.session = cls.wm.get_session(cls.config.name, filename)
print('info 1: cls.session', cls.session)
print('info 1: cls.session.state', cls.session.state)
Expand Down

0 comments on commit 0308801

Please sign in to comment.