Closed rwinterschlaf closed 1 year ago
You can try to test this with a mocked Timeouterror.
I've done that with Twitter Response Errors here: https://github.com/Leibniz-HBI/twacapic/blob/main/tests/test_twacapic.py#L428
I've used the unittest mocks (https://docs.python.org/3/library/unittest.mock.html)
But there might be more elegant solutions for pytest.
Tests have a single error that does not seem to be an issue in later functions that rely on the error-throwing test (pur abo button not clickable). It might be a selenium thing, will keep an eye on it, but it does not impact the tool as such at the moment, as dependent functionality is still there.