Test the base result.
(
hacs: HacsBase,
response_mocker: ResponseMocker,
exception: Exception,
expectation: ContextManager,
)
| 69 | ), |
| 70 | ) |
| 71 | async def test_exception_handling( |
| 72 | hacs: HacsBase, |
| 73 | response_mocker: ResponseMocker, |
| 74 | exception: Exception, |
| 75 | expectation: ContextManager, |
| 76 | ): |
| 77 | """Test the base result.""" |
| 78 | response_mocker.add( |
| 79 | "https://data-v2.hacs.xyz/integration/repositories.json", |
| 80 | response=MockedResponse(exception=exception), |
| 81 | ) |
| 82 | |
| 83 | with expectation: |
| 84 | await hacs.data_client.get_repositories("integration") |
| 85 | |
| 86 | |
| 87 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…