493 bytes of Python
Created 1 day, 19 hours ago
— expires in 6 days
Viewed
70 times
https://dpaste.com/AEYUJMH7F
| @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)
|
@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)