WPS437 Protected attribute usage (within the test directory) #699
Replies: 2 comments 7 replies
-
The "public API" concept can be applied at different levels: module, subpackage, package. It's often possible to restructure the code to improve the separation of concerns/abstraction layer distinction. If that's not possible, it's also possible to have some sort of a "proxy" module in tests that would import private things for testing and re-expose them as public, for example. Then, just one place would have to be ignored. I can't really add more specific ideas without seeing the actual code snippet where this is happening, there's not enough context for me. |
Beta Was this translation helpful? Give feedback.
-
yeah, it's gone now. There are others like this one: https://github.com/ansible/ansible-navigator/blob/main/tests/unit/actions/test_run.py#L190 and more I suspect. |
Beta Was this translation helpful? Give feedback.
-
This one caught my attention because it is from a test.
I see a few choices here,
@ansible/devtools thoughts?
Beta Was this translation helpful? Give feedback.
All reactions