def test_names_are_correct(mocker): tc = ToxLintCase([]) deps = set(["ansible-lint", "flake8", "yamllint", "ansible"]) mocker.patch( "tox_ansible.tox_lint_case.Tox.toxinidir", new_callable=mocker.PropertyMock, return_value="/home", ) assert tc.get_name() == "lint_all" assert tc.get_working_dir() == "/home" assert tc.get_dependencies() == deps
def test_names_are_correct(self): tc = ToxLintCase([]) deps = set(["molecule", "ansible-lint", "flake8", "yamllint"]) self.assertEqual(tc.get_name(), "lint_all") self.assertEqual(tc.get_working_dir(), "{toxinidir}") self.assertEqual(tc.get_dependencies(), deps)