Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_load_image_config(self):
test_dir = self.get_test_loc('images/config')
expected_dir = self.get_test_loc('images/config_expected')
for config_file in os.listdir(test_dir):
base_name = fileutils.file_base_name(config_file)
config_file = os.path.join(test_dir, config_file)
image = Image.load_image_config(config_file)
expected = os.path.join(expected_dir, base_name + '.expected.json')
result = image.as_dict()
check_expected(result, expected, regen=False)
def test_Image(self):
Image()