In our new project click-types we want to start with test (pytest). We wrote two test cases. One works well (not so sophisticated yet) but the other one does not will work.
this is the one that won’t work. I get strange error messages that I don’t understand:
Hint: make sure your test modules/packages have valid Python names. Traceback: /home/nero/.pyenv/versions/3.8.7/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_cases/ansible.py:7: in <module> from click_types.ansible import AnsibleVaultParamType as vault click_types/ansible.py:7: in <module> from ansible.errors import AnsibleError E ModuleNotFoundError: No module named 'ansible.errors'; 'ansible' is not a package
If I do the steps from importing and doing in a python shell and call
convert method by hand the param type do what it should.
I want to get a clue on that but currently I don’t have any more idea to get it.