How to use the yoga.model.helpers.normalize_path 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_model_helpers.py View on Github external
u"./images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"../images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"..\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/subfolder/../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"/images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"C:\\images\\texture.png") == "images/texture.png"

        assert helpers.normalize_path(
            u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa
github wanadev / yoga / test / test_model_helpers.py View on Github external
def test_normalize_path(self):
        assert helpers.normalize_path(
            u"images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"../images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"..\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/subfolder/../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
github wanadev / yoga / test / test_model_helpers.py View on Github external
def test_normalize_path(self):
        assert helpers.normalize_path(
            u"images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"../images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"..\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/subfolder/../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"/images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"C:\\images\\texture.png") == "images/texture.png"
github wanadev / yoga / test / test_model_helpers.py View on Github external
def test_normalize_path(self):
        assert helpers.normalize_path(
            u"images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"../images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"..\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/subfolder/../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"/images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"C:\\images\\texture.png") == "images/texture.png"

        assert helpers.normalize_path(
            u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa
github wanadev / yoga / test / test_model_helpers.py View on Github external
def test_normalize_path(self):
        assert helpers.normalize_path(
            u"images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"../images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"..\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/subfolder/../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"/images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
github wanadev / yoga / test / test_model_helpers.py View on Github external
u"images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"../images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"..\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/subfolder/../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"/images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"C:\\images\\texture.png") == "images/texture.png"

        assert helpers.normalize_path(
            u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa
github wanadev / yoga / test / test_model_helpers.py View on Github external
def test_normalize_path(self):
        assert helpers.normalize_path(
            u"images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"../images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"..\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/subfolder/../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"/images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"C:\\images\\texture.png") == "images/texture.png"

        assert helpers.normalize_path(
            u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa
github wanadev / yoga / test / test_model_helpers.py View on Github external
def test_normalize_path(self):
        assert helpers.normalize_path(
            u"images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"../images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"..\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/subfolder/../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
github wanadev / yoga / test / test_model_helpers.py View on Github external
assert helpers.normalize_path(
            u"../images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"..\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/subfolder/../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"/images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"C:\\images\\texture.png") == "images/texture.png"

        assert helpers.normalize_path(
            u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa
github wanadev / yoga / test / test_model_helpers.py View on Github external
u".\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u".\\images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"../images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"..\\images\\texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/subfolder/../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"./images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"/images/texture.png") == "images/texture.png"
        assert helpers.normalize_path(
            u"C:\\images\\texture.png") == "images/texture.png"

        assert helpers.normalize_path(
            u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa