(*args: typing.Any, **kwargs: typing.Any)
| 172 | |
| 173 | @wraps(f) |
| 174 | def wrapper(*args: typing.Any, **kwargs: typing.Any) -> typing.Any: |
| 175 | global _requires_network_has_route |
| 176 | if _requires_network_has_route is None: |
| 177 | _requires_network_has_route = _has_route() |
| 178 | if not _requires_network_has_route: |
| 179 | pytest.skip("Can't run the test because the network is unreachable") |
| 180 | return f(*args, **kwargs) |
| 181 | |
| 182 | return typing.cast(_TestFuncT, wrapper) |
| 183 |
nothing calls this directly
no test coverage detected