From 7fec0b69a082aaeec72fee0612766aa42f6b1b4d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 18 Apr 2024 07:52:35 +0200 Subject: Merging upstream version 9.4.0+dfsg. Signed-off-by: Daniel Baumann --- ansible_collections/arista/eos/tests/unit/mock/loader.py | 2 +- ansible_collections/arista/eos/tests/unit/mock/yaml_helper.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'ansible_collections/arista/eos/tests/unit/mock') diff --git a/ansible_collections/arista/eos/tests/unit/mock/loader.py b/ansible_collections/arista/eos/tests/unit/mock/loader.py index 736fa4167..67b84c62e 100644 --- a/ansible_collections/arista/eos/tests/unit/mock/loader.py +++ b/ansible_collections/arista/eos/tests/unit/mock/loader.py @@ -31,7 +31,7 @@ from ansible.parsing.dataloader import DataLoader class DictDataLoader(DataLoader): def __init__(self, file_mapping=None): file_mapping = {} if file_mapping is None else file_mapping - assert type(file_mapping) == dict + assert isinstance(file_mapping, dict) super(DictDataLoader, self).__init__() diff --git a/ansible_collections/arista/eos/tests/unit/mock/yaml_helper.py b/ansible_collections/arista/eos/tests/unit/mock/yaml_helper.py index c915b9194..d7d759b52 100644 --- a/ansible_collections/arista/eos/tests/unit/mock/yaml_helper.py +++ b/ansible_collections/arista/eos/tests/unit/mock/yaml_helper.py @@ -149,11 +149,7 @@ class YamlTestUtils(object): ) assert yaml_string == yaml_string_obj_from_stream - assert ( - yaml_string - == yaml_string_obj_from_stream - == yaml_string_obj_from_string - ) + assert yaml_string == yaml_string_obj_from_stream == yaml_string_obj_from_string assert ( yaml_string == yaml_string_obj_from_stream -- cgit v1.2.3