mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
16 lines
507 B
Python
16 lines
507 B
Python
# -*- coding: utf-8 -*-
|
|
from uuid import uuid4
|
|
from igniter.tools import validate_path_string
|
|
|
|
|
|
def test_validate_path_string(tmp_path):
|
|
# test path
|
|
status1, _ = validate_path_string(tmp_path.as_posix())
|
|
assert status1 is True
|
|
status2, _ = validate_path_string("booo" + str(uuid4()))
|
|
assert status2 is False
|
|
|
|
# todo: change when Pype token is implemented
|
|
status3, reason = validate_path_string(str(uuid4()))
|
|
assert status3 is False
|
|
assert reason == "Not implemented yet"
|