diff options
author | nicolargo <nicolashennion@gmail.com> | 2024-05-09 10:41:24 +0200 |
---|---|---|
committer | nicolargo <nicolashennion@gmail.com> | 2024-05-09 10:41:24 +0200 |
commit | ada7f248badb0feec9495e6ef5c9eb0c8bdd6938 (patch) | |
tree | f03a721ebb203374861daa21178c59525966fee6 /unittest-core.py | |
parent | 4ddff48c7093d00e7723bfab5aa2412e83f36d13 (diff) |
Improve code
Diffstat (limited to 'unittest-core.py')
-rwxr-xr-x | unittest-core.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/unittest-core.py b/unittest-core.py index 87a7718a..6e45c0ce 100755 --- a/unittest-core.py +++ b/unittest-core.py @@ -90,18 +90,16 @@ class TestGlances(unittest.TestCase): # Check stats self.assertIsInstance(plugin_instance.get_raw(), (dict, list)) if isinstance(plugin_instance.get_raw(), dict): - # self.assertTrue(any([f in plugin_instance.get_raw() for f in plugin_instance.fields_description])) res = False for f in plugin_instance.fields_description: if f not in plugin_instance.get_raw(): - print(f"WARNING: {f} not found in {plugin} plugin fields_description") + print(f"WARNING: {f} field not found in {plugin} plugin stats") else: res = True self.assertTrue(res) elif isinstance(plugin_instance.get_raw(), list): res = False for i in plugin_instance.get_raw(): - # self.assertTrue(all([f in plugin_instance.fields_description for f in i])) for f in i: if f in plugin_instance.fields_description: res = True |