"""The bundled first-party playbook source is always present and discoverable.""" from steward.ansible.sources import ( BUILTIN_SOURCE_NAME, discover_playbooks, get_sources, ) def test_builtin_source_is_first_and_local(): sources = get_sources({"sources": []}) assert sources[0]["name"] == BUILTIN_SOURCE_NAME assert sources[0]["type"] == "local" def test_bundled_playbooks_are_discoverable(): builtin = get_sources({"sources": []})[0] playbooks = discover_playbooks(builtin["path"]) assert "maintenance/docker_prune.yml" in playbooks assert "host_agent/install.yml" in playbooks