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'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 UTC+2 Felix Fontein wrote:
>
>> 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_collections.community.internal_test_tools.tests.unit.compat.mock 
>> > import Mock, patch 
>> > 
>> > What is the procedure to follow to set it up ? 
>>
>> did you install the collection in the same path structure that the 
>> collection you are running ansible-test on is in? 
>>
>> I.e. do you have 
>>
>> /path/to/ansible_collections/community/internal_test_tools/ 
>> /path/to/ansible_collections/yournamespace/yourcollection/ 
>>
>> in the same directory structure? 
>>
>> Best, 
>> Felix 
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/586f1586-cb3a-4f3e-ab10-31abab9c51f9n%40googlegroups.com.

Reply via email to