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:
@@ -13,9 +13,9 @@ from ansible_collections.community.docker.plugins.module_utils._copy import (
|
||||
)
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from collections.abc import Sequence
|
||||
from collections.abc import Sequence # pragma: no cover
|
||||
|
||||
T = t.TypeVar("T")
|
||||
T = t.TypeVar("T") # pragma: no cover
|
||||
|
||||
|
||||
def _simple_generator(sequence: Sequence[T]) -> t.Generator[T]:
|
||||
|
||||
Reference in New Issue
Block a user