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

Make sure locals_max_{length,string} work as expected in case they are None #675

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

Conversation

Sh4pe
Copy link

@Sh4pe Sh4pe commented Nov 13, 2024

This PR fixes the case where truncation or abbreviation in ExceptionDictTransformer is disabled using locals_max_length or locals_max_string.

Closes #672.

@Sh4pe Sh4pe force-pushed the fix/exception-dict-transformer-type-error branch from d124c51 to cab20c7 Compare November 13, 2024 23:16
@Sh4pe
Copy link
Author

Sh4pe commented Nov 13, 2024

Uhm, what about the pre-commit check? What is wrong there?

)
def test_exception_dict_transformer_locals_max_accept_none_argument(
kwargs, local_variable
):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late response! The CI is failing because your test doesn't have a docstring in the form of https://jml.io/test-docstrings/

See also: https://hynek.me/articles/document-your-tests/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, got it, thanks. I tried to add a suitable docstring, hope that suffices.

@Sh4pe Sh4pe force-pushed the fix/exception-dict-transformer-type-error branch from cab20c7 to d86f1c3 Compare December 3, 2024 20:45
@Sh4pe Sh4pe force-pushed the fix/exception-dict-transformer-type-error branch from d86f1c3 to 79297cf Compare December 3, 2024 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants