def test_parsing_all_option(): doc_cli = DocCLI(['/n/ansible-doc', '-a']) doc_cli.parse()
def test_legacy_modules_list(): args = ['ansible-doc', '-l', 'ansible.legacy', '-t', 'module'] obj = DocCLI(args=args) obj.parse() result = obj._list_plugins('module', module_loader) assert len(result) == 0