Good to know - we will eventually support collections, but we will have
to support the current roles for a while.
>
> ----
> If you keep the current folder structure, I wonder if instead of messing
> with sys.modules in the test code, you could just make the folders
> `ansible/module_utils/basic`, etc. in some far-off place, have those
> import from the path you know works, and put that in the python path
> too. Same as your current idea, it's very hacky but still isolated to
> your testing setup.
I was thinking of something like that, for tox/venv testing:
install ansible in the venv
cp or ln myrole/module_utils/* inside .tox/path/to/ansible/module_utils
That way I can script a solution for all of our system roles rather than
having to disable pylint checks and custom sys.modules hacking inside
unit test code.
> <mailto:
ansible-devel%2Bunsu...@googlegroups.com>.