How to use the conan.image_v11.Image function in conan

To help you get started, we’ve selected a few conan examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nexB / conan / tests / test_image_v11.py View on Github external
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)