You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
# -*- coding: utf-8 -*-
|
|
|
|
import json
|
|
|
|
from testclient import testclient
|
|
|
|
# Sample data
|
|
data = {
|
|
"numeric": {
|
|
"1234": {
|
|
"lorem": "ipsum",
|
|
"dolor": "sit",
|
|
"amet": "consectetur",
|
|
},
|
|
"5678": {
|
|
"lorem": "ipsum",
|
|
"dolor": "sit",
|
|
"amet": "consectetur",
|
|
},
|
|
},
|
|
"uuid": {
|
|
"123e4567-e89b-12d3-a456-426614174000": {
|
|
"lorem": "ipsum",
|
|
"dolor": "sit",
|
|
"amet": "consectetur",
|
|
},
|
|
"123e4567-e89b-12d3-a456-426614174001": {
|
|
"lorem": "ipsum",
|
|
"dolor": "sit",
|
|
"amet": "consectetur",
|
|
},
|
|
},
|
|
"mixed": {
|
|
"1234": {
|
|
"lorem": "ipsum",
|
|
"dolor": "sit",
|
|
"amet": "consectetur",
|
|
},
|
|
"123e4567-e89b-12d3-a456-426614174000": {
|
|
"lorem": "ipsum",
|
|
"dolor": "sit",
|
|
"amet": "consectetur",
|
|
},
|
|
},
|
|
}
|
|
|
|
testclient(
|
|
"application/json",
|
|
lambda: json.dumps(data),
|
|
lambda content: json.loads(content),
|
|
)
|