Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Skip tests with unsatisfied deps #55853
Tests for modules or other plugins whose deps fall outside of ansible's core dependency set need to check whether the deps are installed and skip if they are not.
This PR skips for several tests which were found to be running even when their deps were not installed.
backport to 2.8 when merged.
@mattclay I'm not quite sure why the cloudstack test is failing now.... The pytestmark to skip the test on python-2.6 is functioning correctly locally. I can change it to skip the test if it's on python-2.6 in a different way (it was using unittest before).... I'm just not sure why this syntax is failing in our setup.
@mattclay, I figured out what my mistake was. The test was failing when it tested whether it could import the cs module. The toplevel code in the test all runs and registers whether any of the conditions would cause it to skip. Since I was trying to import
Should work now!