Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise site packages collection search test #325

Merged
merged 12 commits into from
Aug 29, 2023

Conversation

cidrblock
Copy link
Collaborator

@cidrblock cidrblock commented Aug 25, 2023

Revises #318

This test may seem a little expensive, but rather than modify the current runtime enviroment for pytest by installing the collection into one of the current paths, install the collection into a module scoped virtual enviromnet site packages directory.

This will avoid a conflict with a test that is being simultaniously run because the venv is scoped to the module.

The test was moved into it's own file to reflect the scope of the venv fixture and avoid conflict in the future with other tests that may use it.

The return value of require_collection was also modified to provide the version and location of the collection found so it could be used within the test.

@audgirka audgirka force-pushed the fix_revise_sp_test branch from a2151b3 to 44437e3 Compare August 29, 2023 09:38
@ssbarnea ssbarnea merged commit 63e7fbf into ansible:main Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants