示例#1
0
def test_instance():
    """Formatting of instances works fine"""
    instance = pyblish.api.Instance("MyInstance")
    instance.set_data("family", "MyFamily")

    instance = formatting.format_instance(instance)
    schema.validate(instance, "instance")
示例#2
0
def test_instance():
    """Formatting of instances works fine"""
    instance = pyblish.api.Instance("MyInstance")
    instance.set_data("family", "MyFamily")

    instance = formatting.format_instance(instance)
    schema.validate(instance, "instance")
示例#3
0
def test_instance():
    """Formatting of instances works fine"""
    instance = pyblish.api.Instance("MyInstance")
    instance.set_data("family", "MyFamily")

    instance = formatting.format_instance(instance)
    schema.validate(instance, "instance")

    # Test JSON-compatibility
    json.dumps(instance)