How to use the conan.image_v11.Layer 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_layer(self):
        test_dir = self.get_test_loc('layers/layers')
        expected_dir = self.get_test_loc('layers/expected')
        for layer_id in os.listdir(test_dir):
            layer_dir = os.path.join(test_dir, layer_id)
            layer = Layer.load_layer(layer_dir)
            expected = os.path.join(expected_dir, layer_id + '.expected.json')
            result = layer.as_dict()
            check_expected(result, expected, regen=False)