From 282f052ea151e714119307db084c1677619ef0ae Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 11 Jan 2023 03:29:05 +0000 Subject: [PATCH] Use `is` to compare type of objects --- tests/test_interfaces.py | 4 ++-- tests/test_targets.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_interfaces.py b/tests/test_interfaces.py index e8ef769..66f3e3a 100644 --- a/tests/test_interfaces.py +++ b/tests/test_interfaces.py @@ -11,7 +11,7 @@ def test_interfaces(): print(list_interfaces_client) # check if dict - assert type(list_interfaces_client) == dict + assert type(list_interfaces_client) is dict # not empty dict # empty on CI/CD assert len(list_interfaces_client) >= 0 @@ -23,7 +23,7 @@ def test_interfaces(): ) print(list_interfaces_client) # check if dict - assert type(list_interfaces_client) == dict + assert type(list_interfaces_client) is dict # not empty dict # empty on CI/CD assert len(list_interfaces_client) >= 0 diff --git a/tests/test_targets.py b/tests/test_targets.py index a7f86d7..3b0d961 100644 --- a/tests/test_targets.py +++ b/tests/test_targets.py @@ -9,7 +9,7 @@ def test_interfaces(): print(list_targets_client) # check if dict - assert type(list_targets_client) == dict + assert type(list_targets_client) is dict # not empty dict # empty on CI/CD assert len(list_targets_client) >= 0