def test_case_expand_ansible(scenario): t = ToxMoleculeCase(scenario) ts = t.expand_ansible("2.7") assert ts.ansible == "2.7" assert ts.get_name() == "ansible27-my_test" assert "ansible==2.7.*" in ts.dependencies assert ts.basepython is None assert "Auto-generated for: molecule test -s my_test" == ts.description
def test_case_expand_ansible(scenario): # pylint: disable=misplaced-comparison-constant t = ToxMoleculeCase(scenario) ts = t.expand_ansible("2.7") assert ts.ansible == "2.7" assert ts.get_name() == "ansible27-my_test" assert sorted(ts.get_dependencies()) == sorted(BASE_DEPS + ["ansible==2.7.*"]) assert ts.get_basepython() is None assert "Auto-generated for: molecule test -s my_test" == ts.description