Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 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)