Leibniz-HBI / newsfeedback

Tool for extracting and saving news article metadata (and optionally content) at regular intervals.
MIT License
3 stars 0 forks source link

Added waits and changed the default page load timeout #38

Closed rwinterschlaf closed 1 year ago

rwinterschlaf commented 1 year ago

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.

FlxVctr commented 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.