summaryrefslogtreecommitdiffstats
path: root/ansible_collections/arista/eos/tests/unit/mock
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
commit7fec0b69a082aaeec72fee0612766aa42f6b1b4d (patch)
treeefb569b86ca4da888717f5433e757145fa322e08 /ansible_collections/arista/eos/tests/unit/mock
parentReleasing progress-linux version 7.7.0+dfsg-3~progress7.99u1. (diff)
downloadansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.tar.xz
ansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.zip
Merging upstream version 9.4.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/arista/eos/tests/unit/mock')
-rw-r--r--ansible_collections/arista/eos/tests/unit/mock/loader.py2
-rw-r--r--ansible_collections/arista/eos/tests/unit/mock/yaml_helper.py6
2 files changed, 2 insertions, 6 deletions
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