Create and configure Flutter driver for testing.
()
| 29 | |
| 30 | @pytest.fixture |
| 31 | def driver() -> Generator['WebDriver', None, None]: |
| 32 | """Create and configure Flutter driver for testing.""" |
| 33 | options = make_options() |
| 34 | |
| 35 | client_config = AppiumClientConfig(remote_server_addr=SERVER_URL_BASE) |
| 36 | client_config.timeout = 600 |
| 37 | |
| 38 | driver = webdriver.Remote(options=options, client_config=client_config) |
| 39 | |
| 40 | yield driver |
| 41 | |
| 42 | driver.quit() |
| 43 | |
| 44 | |
| 45 | @pytest.fixture |
nothing calls this directly
no test coverage detected