(ctx: BetaURLContext, url: str)
| 126 | |
| 127 | def test_a_predicate_shaped_or_async_policy_on_the_sync_class_is_a_contract_error() -> None: |
| 128 | def predicate(ctx: BetaURLContext, url: str) -> Any: |
| 129 | return False |
| 130 | |
| 131 | with pytest.raises(ToolsetContractError, match="return None to allow.*; got bool"): |
| 132 | FakeBrowser(url_policy=predicate).call(CTX, "navigate", {"url": "https://example.com/"}) |
nothing calls this directly
no outgoing calls
no test coverage detected