How to use the yoga.image.options function in yoga

To help you get started, we’ve selected a few yoga 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 wanadev / yoga / test / test_image_options.py View on Github external
def test_no_parameter_returns_default_options(self):
        opt = options.normalize_options()

        assert opt is not options.DEFAULT_OPTIONS

        for k, v in options.DEFAULT_OPTIONS.items():
            assert k in opt
            assert opt[k] == v
github wanadev / yoga / test / test_image_options.py View on Github external
def test_numeric_resize_option(self, input_, output):
        opt = options.normalize_options({
            "resize": input_
            })
        assert opt["resize"][0] == output[0]
        assert opt["resize"][1] == output[1]