mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Fix/improve unit tests (#1281)
* Fix conditional import. * Don't count lines for code coverage which should never execute. * Fix tests to use pytest.raises.
This commit is contained in:
@@ -17,12 +17,12 @@ from ansible_collections.community.docker.plugins.module_utils._util import (
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
|
||||
class DAMSpec(t.TypedDict):
|
||||
class DAMSpec(t.TypedDict): # pragma: no cover
|
||||
av: dict[str, t.Any]
|
||||
bv: dict[str, t.Any]
|
||||
result: bool
|
||||
|
||||
class Spec(t.TypedDict):
|
||||
class Spec(t.TypedDict): # pragma: no cover
|
||||
a: t.Any
|
||||
b: t.Any
|
||||
method: t.Literal["strict", "ignore", "allow_more_present"]
|
||||
|
||||
Reference in New Issue
Block a user