mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 03:46:55 +00:00
Add more CI checks (#1150)
* Enable mypy. * Add flake8. * Add pylint with a long list of ignores to be removed.
This commit is contained in:
@@ -68,7 +68,6 @@ class TestDockerConnectionClass(unittest.TestCase):
|
||||
self, mock_new_docker_version, mock_old_docker_version
|
||||
):
|
||||
self.dc._version = None
|
||||
version = self.dc.docker_version
|
||||
|
||||
# old version and new version fail
|
||||
@mock.patch(
|
||||
|
||||
@@ -93,7 +93,7 @@ def test_parse_line_success(line, kwargs, result):
|
||||
|
||||
|
||||
@pytest.mark.parametrize("line, kwargs, message", FAILURE_TEST_CASES)
|
||||
def test_parse_line_success(line, kwargs, message):
|
||||
def test_parse_line_failure(line, kwargs, message):
|
||||
with pytest.raises(InvalidLogFmt) as exc:
|
||||
parse_line(line, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user