Re: [ansible-devel] Common test utility functions

2022-05-15 Thread 'Felix Fontein' via Ansible Development
Hi, > I didn't, I've used ansible-galaxy install which did install the > collection in .ansible/ansible_collections/... > > Am I supposed to do a git clone inside the same path of the > collection I'm developing ? This wasn't clear for me :) you can also tell `ansible-galaxy collection install`

Re: [ansible-devel] Common test utility functions

2022-05-15 Thread Idont Haveaname
So, git cloning next to my work-in-progress collection allowed me to do import it, Thanks again, it's a bit fuzy to find correct examples of "Getting started with collection testing" :) Regards, Cédric S. On Sunday, May 15, 2022 at 9:34:45 PM UTC+2 Idont Haveaname wrote: > Hello, > > I didn'

Re: [ansible-devel] Common test utility functions

2022-05-15 Thread Idont Haveaname
Hello, I didn't, I've used ansible-galaxy install which did install the collection in .ansible/ansible_collections/... Am I supposed to do a git clone inside the same path of the collection I'm developing ? This wasn't clear for me :) Thanks ! Cédric S. On Sunday, May 15, 2022 at 9:31:12 PM

Re: [ansible-devel] Common test utility functions

2022-05-15 Thread 'Felix Fontein' via Ansible Development
Hello, > I had a look to this interesting internal test collection, yet I > cannot make it work, my ansible-test units command keeps complaining > that the following path cannot be found: > > from > ansible_collections.community.internal_test_tools.tests.unit.compat > import unittest from > ansi

Re: [ansible-devel] Common test utility functions

2022-05-15 Thread Idont Haveaname
Hello, I had a look to this interesting internal test collection, yet I cannot make it work, my ansible-test units command keeps complaining that the following path cannot be found: from ansible_collections.community.internal_test_tools.tests.unit.compat import unittest from ansible_collectio

Re: [ansible-devel] Common test utility functions

2021-02-14 Thread 'Felix Fontein' via Ansible Development
Hi, > > I'm not very happy about this either. My personal recommendation > > (slightly biased ;) ) for collections would be to import them from > > https://galaxy.ansible.com/community/internal_test_utils / > > https://github.com/ansible-collections/community.internal_test_tools. > > That of cours

Re: [ansible-devel] Common test utility functions

2021-02-13 Thread Orion Poplawski
On 2/11/21 8:15 AM, 'Felix Fontein' via Ansible Development wrote: Hi, I'm starting to migrate my module project into a collection and I'm running into issues with missing test utility functions like: tests/unit/plugins/lookup/test_pfsense.py:10: in from units.compat.mock import patch E

Re: [ansible-devel] Common test utility functions

2021-02-11 Thread 'Felix Fontein' via Ansible Development
Hi, > I'm starting to migrate my module project into a collection and I'm > running into issues with missing test utility functions like: > > tests/unit/plugins/lookup/test_pfsense.py:10: in > from units.compat.mock import patch > E ImportError: No module named units.compat.mock > > tes

[ansible-devel] Common test utility functions

2021-02-11 Thread Orion Poplawski
I'm starting to migrate my module project into a collection and I'm running into issues with missing test utility functions like: tests/unit/plugins/lookup/test_pfsense.py:10: in from units.compat.mock import patch E ImportError: No module named units.compat.mock tests/unit/plugins/modul