(client)
| 42 | |
| 43 | |
| 44 | def async_or_skip(client): |
| 45 | if not client.supports_async: |
| 46 | # Use async error message as skip message |
| 47 | with pytest.raises(NotImplementedError) as e: |
| 48 | client.as_async() |
| 49 | pytest.skip(str(e.value)) |
| 50 | |
| 51 | |
| 52 | @pytest.fixture(scope="module") |