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

Too many string-related errors #138

Closed
GoldsteinE opened this issue Aug 13, 2019 · 3 comments
Closed

Too many string-related errors #138

GoldsteinE opened this issue Aug 13, 2019 · 3 comments

Comments

@GoldsteinE
Copy link

There is a lot strings like

self._log.error("Some debug message with %s", value)

I only care about value present in log message (if I care at all), not about log message format. It would be redundant to make assertions about whole log message. So, when mutmut changes this to

self._log.error("XXSome debug message with %sXX", value)

tests doesn't fail. And shouldn't.

I propose adding option not to mutate strings with len() < threshold, because it's possibly human-readable messages which shouldn't be tested.

@GoldsteinE
Copy link
Author

And it would be cool to have ability to completely exclude all calls of specific function (e. g. self._log.debug()) from mutation

@boxed
Copy link
Owner

boxed commented Aug 14, 2019

Yes, we're discussing this and related issues in #47

@boxed
Copy link
Owner

boxed commented Sep 25, 2019

Closing this in favor of #47

@boxed boxed closed this as completed Sep 25, 2019
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

No branches or pull requests

2 participants