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

More on Builtin.contribute and Builtin.get_functions. #1298

Merged
merged 6 commits into from
Jan 18, 2025

Conversation

mmatera
Copy link
Contributor

@mmatera mmatera commented Jan 18, 2025

Some missing details that I discovered regarding these methods, and a pytest to test the right behaviour:

  • Fix the regular expression used in get_function to support multiline docstrings.
  • Fix how the full name of builtins are built in contribute when the class does not have a context attribute.
  • Add tests for Builtin.contribute

More tests can be added later.

* Fix the regular expression used in get_function to support multiline docstrings.
* Fix how the full name of builtins are built in `contribute`  when the class does not
  have a `context` attribute.
* Add tests for Builtin.contribute
test/core/test_builtin.py Outdated Show resolved Hide resolved
@mmatera mmatera force-pushed the test_for_contribute_and_improving_that_method branch from cb4b3ad to 604c18f Compare January 18, 2025 12:18
@rocky
Copy link
Member

rocky commented Jan 18, 2025

LGTM

@mmatera mmatera merged commit 6f5798b into master Jan 18, 2025
14 checks passed
@mmatera mmatera deleted the test_for_contribute_and_improving_that_method branch January 18, 2025 13:00
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