diff options
Diffstat (limited to 'pw_unit_test/py/test_group_metadata_test.py')
-rw-r--r-- | pw_unit_test/py/test_group_metadata_test.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pw_unit_test/py/test_group_metadata_test.py b/pw_unit_test/py/test_group_metadata_test.py index d54e86fbc..1ab32ea60 100644 --- a/pw_unit_test/py/test_group_metadata_test.py +++ b/pw_unit_test/py/test_group_metadata_test.py @@ -40,13 +40,14 @@ class TestGroupMetadataTest(unittest.TestCase): meta = json.loads(meta_text) except json.decoder.JSONDecodeError as jde: raise ValueError( - f'Failed to decode file {self.metadata_path} as JSON: {meta_text}' + f'Failed to decode file {self.metadata_path} ' + f'as JSON: {meta_text}' ) from jde self.assertIsInstance(meta, list) found = False for test_entry in meta: - self.assertIn('type', test_entry) - if test_entry['type'] != 'test': + self.assertIn('test_type', test_entry) + if test_entry['test_type'] != 'unit_test': continue self.assertIn('test_name', test_entry) self.assertIn('test_directory', test_entry) |