MCPcopy
hub / github.com/reflex-dev/reflex / driver

Function driver

tests/integration/test_deploy_url.py:55–69  ·  view source on GitHub ↗

WebDriver fixture for testing deploy_url. Args: deploy_url_sample: AppHarness fixture for testing deploy_url. Yields: WebDriver: A WebDriver instance.

(deploy_url_sample: AppHarness)

Source from the content-addressed store, hash-verified

53
54@pytest.fixture
55def driver(deploy_url_sample: AppHarness) -> Generator[WebDriver, None, None]:
56 """WebDriver fixture for testing deploy_url.
57
58 Args:
59 deploy_url_sample: AppHarness fixture for testing deploy_url.
60
61 Yields:
62 WebDriver: A WebDriver instance.
63 """
64 assert deploy_url_sample.app_instance is not None, "app is not running"
65 driver = deploy_url_sample.frontend()
66 try:
67 yield driver
68 finally:
69 driver.quit()
70
71
72def test_deploy_url(deploy_url_sample: AppHarness, driver: WebDriver) -> None:

Callers

nothing calls this directly

Calls 1

frontendMethod · 0.80

Tested by

no test coverage detected