Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
"""Sample test file."""

from __future__ import annotations


def test_placeholder() -> None:
"""Placeholder to satisfy test-file detection."""
3 changes: 2 additions & 1 deletion tests/test_module_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading