Sign in New API Help About

493 bytes of Python
Created 1 day, 19 hours ago — expires in 6 days
Viewed 70 times
https://dpaste.com/AEYUJMH7F
COPY TO CLIPBOARD SOFT WRAP RAW TEXT DUPLICATE DIFF EDIT PROPERTIES DELETE
@pytest.mark.unit
def test_invalid_entity_config():
    data = {
        "type": "type",
        "id": "id",
        "configSchema": {
            "title": "Person",
            "type": "object",
            "properties": {
                "name": {
                    "type": "string",
                    "description": "The person's first name.",
                },
            },
        },
        "config": {
            "name": 1,
        },
    }
    Entity(**data)

Share: