diff --git a/mkdocs.yml b/mkdocs.yml index f9375842..7f894fad 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -32,19 +32,6 @@ plugins: - material/search: separator: '[\s\-,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])' - material/tags - - mkdocstrings: - handlers: - python: - paths: [src] - options: - # Sphinx is for historical reasons, but we could consider switching if needed - # https://mkdocstrings.github.io/griffe/docstrings/ - docstring_style: sphinx - merge_init_into_class: yes - show_submodules: yes - inventories: - - url: https://docs.ansible.com/ansible/latest/objects.inv - domains: [py, std] markdown_extensions: - markdown_include.include: diff --git a/tests/fixtures/ansible_collections/test/test/tests/unit/plugins/modules/test_pool.py b/tests/fixtures/ansible_collections/test/test/tests/unit/plugins/modules/test_pool.py index bfcee496..079295cb 100644 --- a/tests/fixtures/ansible_collections/test/test/tests/unit/plugins/modules/test_pool.py +++ b/tests/fixtures/ansible_collections/test/test/tests/unit/plugins/modules/test_pool.py @@ -1 +1,7 @@ """Sample test file.""" + +from __future__ import annotations + + +def test_placeholder() -> None: + """Placeholder to satisfy test-file detection.""" diff --git a/tests/test_module_dispatcher.py b/tests/test_module_dispatcher.py index 60fc72ba..39b89b2a 100644 --- a/tests/test_module_dispatcher.py +++ b/tests/test_module_dispatcher.py @@ -67,8 +67,9 @@ def test_ansible_module_error(hosts): # type: ignore[no-untyped-def] # noqa: A """Verify that AnsibleModuleError is raised when no such module exists.""" from pytest_ansible.errors import AnsibleModuleError + all_hosts = hosts().all with pytest.raises(AnsibleModuleError) as exc_info: - hosts().all.a_module_that_most_certainly_does_not_exist() + all_hosts.a_module_that_most_certainly_does_not_exist() assert ( str(exc_info.value) == f"The module {'a_module_that_most_certainly_does_not_exist'} was not found in configured module paths." # noqa: E501