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

refactor: Improve robustness of patching, add tests #261

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

pederhan
Copy link
Member

In order to prevent crashes when patching private methods and variables of external packages, such as the one seen in #259, this PR calls each patch_ function in a Patcher context (which really should have been done from the beginning).

Adds tests which perform rudimentary testing of each patched module attribute. Nothing in-depth, but ensures they at least work.

@pederhan pederhan merged commit 22a19bd into unioslo:master Nov 28, 2024
5 checks passed
@pederhan pederhan deleted the improve-patching branch November 28, 2024 14:39
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.

1 participant