# Ansible-test not loading collections from requirements.yml

**URL:** <https://forum.ansible.com/t/ansible-test-not-loading-collections-from-requirements-yml/39431>\
**Category:** Get Help\
**Tags:** windows, ansible-test, aws\
**Created:** [January 2, 2025, 11:50pm UTC](https://forum.ansible.com/t/ansible-test-not-loading-collections-from-requirements-yml/39431 "2025-01-02T23:50:07Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dbrennand](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dbrennand/32/7830_2.png) [@dbrennand](https://forum.ansible.com/u/dbrennand)\
**Post date:** [September 3, 2025, 7:31pm UTC](https://forum.ansible.com/t/ansible-test-not-loading-collections-from-requirements-yml/39431/6 "2025-09-03T19:31:33Z")

</div>

Hi folks, I’ve just found this thread whilst I was raising my own issue somewhat related to this. I’m creating some unit tests for the `community.beszel` collection and slightly different to running integration tests I’m using the command: `ansible-test units --docker --requirements`

I noticed that the unit tests are failing in the container due to the `ansible_collections.community.internal_test_tools` not being found. I thought that `ansible-test` would use my `requirements.yml` file and install this collection dependency like it does with Python `requirements.txt` but that doesn’t seem to be the case based on @felixfontein’s last response.

> **[community.beszel/tests/unit at 0.3.0 · ansible-collections/community.beszel](https://github.com/ansible-collections/community.beszel/tree/0.3.0/tests/unit)**
>
> Ansible content to automate the configuration of Beszel Hub and Agents. - ansible-collections/community.beszel

To @branic point, I also couldn’t find:

> So if you are in `/path/to/ansible_collections/amazon/aws` , you need another directory `/path/to/ansible_collections/community/general` (with exactly the same `/path/to` ) where community.general is installed (or its Git repo checked out). Only then will ansible-test find it (and automatically copy it into the Docker container).

Documented anywhere either. Where could this be documented, I don’t mind raising a PR for it.

---

_[View the full topic](https://forum.ansible.com/t/ansible-test-not-loading-collections-from-requirements-yml/39431)._
