Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

See if sequential execution fixes flaky tests #144

Closed
wants to merge 6 commits into from
Closed

Conversation

wirthual
Copy link
Member

No description provided.

jfhr and others added 6 commits April 27, 2024 19:32
This adds a named parameter page_limit to Bundesanzeiger.get_reports. The default value is 1, which preserves the current behavior of fetching only one page. If a higher value is set, the client will search the returned HTML for a "next page" link, and keep generating reports until page_limits pages have been parsed or there is no "next page" link anymore. float('inf') can be passed to fetch all available pages.

This commit adds a unit test for the method to find the "next page" link and another to test that it actually generates more than 20 reports.
This resolves the path to response.html in test_get_next_page_link relative to __file__ (which should be the local path to the python test file). This should hopefully work on the CI server.

I also ran black ./src and black ./tests
@wirthual wirthual closed this May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants