-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.py
More file actions
36 lines (36 loc) · 803 Bytes
/
Copy pathtests.py
File metadata and controls
36 lines (36 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
tests = {
"catalog": [
{
"response": {
"content_regex": "demo1",
"content_lambda": lambda content: "catalog" in content and len(content["catalog"]) == 1
}
}
],
"info": [
{
"request": {
"id": "demo1"
},
"response": {
"content_regex": "scalar",
"content_lambda": lambda content: "parameters" in content and len(content["parameters"]) == 2
}
}
],
"data": [
{
"request": {
"dataset": "demo1",
"start": "1970-01-01T00:00:00Z",
"stop": "1970-01-01T00:00:02Z"
},
"response": {
"status_code": 200,
"content_length": 46,
"content_regex": "^1970-01",
"content": "1970-01-01T00:00:00Z,0\n1970-01-01T00:00:01Z,1\n"
}
}
]
}