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")
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)