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

Remove enableRetry and setPoolSize from Framework #2147

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EnricoMi
Copy link
Collaborator

Using these methods in a test has side-effects on subsequent tests.

For instance, after calling Framework.setPoolSize(20) in test PollSize.py, all subsequent tests run with Github.__requester.__pool_size = 20. All tests before PoolSize.py run with Github.__requester.__pool_size = None.

The same holds for Framework.enableRetry.

Added a comment to avoid adding similar methods in the future (as I was about to do for per_page, which escaped and broke all subsequent tests).

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@EnricoMi
Copy link
Collaborator Author

@sfdye please consider this for reopening

@sfdye sfdye reopened this Oct 13, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2022

Codecov Report

Base: 98.88% // Head: 98.88% // No change to project coverage 👍

Coverage data is based on head (c21dc41) compared to base (7d3c3f0).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2147   +/-   ##
=======================================
  Coverage   98.88%   98.88%           
=======================================
  Files         108      108           
  Lines       11172    11172           
=======================================
  Hits        11047    11047           
  Misses        125      125           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@stale stale bot removed the stale label Oct 26, 2022
@EnricoMi EnricoMi force-pushed the branch-remove-framework-methods-with-side-effects branch from 3072348 to 0ef2f11 Compare December 22, 2022 07:10
@EnricoMi
Copy link
Collaborator Author

Add setter methods like: EnricoMi@ce1bf7e

@EnricoMi EnricoMi marked this pull request as draft June 19, 2023 10:57
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.

None yet

3 participants