summaryrefslogtreecommitdiffstats
path: root/test/lib/ansible_test/_internal/executor.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2023-02-13 19:49:58 +0100
committerGitHub <noreply@github.com>2023-02-13 19:49:58 +0100
commit715ab99462b1799f4a0c1caeddf161e930adf13f (patch)
treee4c74ab28613ac1cadecac189ac6ec4da51af067 /test/lib/ansible_test/_internal/executor.py
parentansible-test - Enable unused-import pylint rule (#79912) (diff)
downloadansible-715ab99462b1799f4a0c1caeddf161e930adf13f.tar.xz
ansible-715ab99462b1799f4a0c1caeddf161e930adf13f.zip
ansible-test - Improve code formatting (#79983)
* ansible-test - Add blank lines after docstrings * ansible-test - Preserve formatting of arg pairs * ansible-test - Remove unused string * ansible-test - Remove pointless dict() usage * ansible-test - Clean up initial func arg indenting * ansible-test - Clean up constructor arg indenting * ansible-test - Clean up func arg wrapping * ansible-test - Clean up comma and paren placement
Diffstat (limited to 'test/lib/ansible_test/_internal/executor.py')
-rw-r--r--test/lib/ansible_test/_internal/executor.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/executor.py b/test/lib/ansible_test/_internal/executor.py
index 0c94cf3ba9..d7d6f1a845 100644
--- a/test/lib/ansible_test/_internal/executor.py
+++ b/test/lib/ansible_test/_internal/executor.py
@@ -81,18 +81,21 @@ def detect_changes(args: TestConfig) -> t.Optional[list[str]]:
class NoChangesDetected(ApplicationWarning):
"""Exception when change detection was performed, but no changes were found."""
+
def __init__(self) -> None:
super().__init__('No changes detected.')
class NoTestsForChanges(ApplicationWarning):
"""Exception when changes detected, but no tests trigger as a result."""
+
def __init__(self) -> None:
super().__init__('No tests found for detected changes.')
class Delegate(Exception):
"""Trigger command delegation."""
+
def __init__(self, host_state: HostState, exclude: list[str] = None, require: list[str] = None) -> None:
super().__init__()
@@ -103,6 +106,7 @@ class Delegate(Exception):
class ListTargets(Exception):
"""List integration test targets instead of executing them."""
+
def __init__(self, target_names: list[str]) -> None:
super().__init__()
@@ -111,5 +115,6 @@ class ListTargets(Exception):
class AllTargetsSkipped(ApplicationWarning):
"""All targets skipped."""
+
def __init__(self) -> None:
super().__init__('All targets skipped.')