summaryrefslogtreecommitdiffstats
path: root/test/lib/ansible_test/_internal/coverage_util.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/coverage_util.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/coverage_util.py')
-rw-r--r--test/lib/ansible_test/_internal/coverage_util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/coverage_util.py b/test/lib/ansible_test/_internal/coverage_util.py
index 0f445059fc..0af1cac4e9 100644
--- a/test/lib/ansible_test/_internal/coverage_util.py
+++ b/test/lib/ansible_test/_internal/coverage_util.py
@@ -60,6 +60,7 @@ from .thread import (
@dataclasses.dataclass(frozen=True)
class CoverageVersion:
"""Details about a coverage version and its supported Python versions."""
+
coverage_version: str
schema_version: int
min_python: tuple[int, int]
@@ -81,6 +82,7 @@ CONTROLLER_COVERAGE_VERSION = COVERAGE_VERSIONS[0]
class CoverageError(ApplicationError):
"""Exception caused while attempting to read a coverage file."""
+
def __init__(self, path: str, message: str) -> None:
self.path = path
self.message = message