Skip to content

Commit 2c9dc2b

Browse files
authored
Updated Get Attributes test with sample data.
1 parent e12378d commit 2c9dc2b

File tree

1 file changed

+85
-1
lines changed

1 file changed

+85
-1
lines changed

tests/test_files/get_attributes.json

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,87 @@
11
{
2-
"garbage": "this tests nothing"
2+
"data": [
3+
{
4+
"category": {
5+
"mainCategory": {
6+
"id": "DEMOGRAPHIC",
7+
"localizedText": "Demographic",
8+
"text": "Demographic"
9+
}
10+
},
11+
"id": "11",
12+
"isAllowedInFilters": true,
13+
"isAllowedInQuotas": true,
14+
"localizedText": "What is your gender?",
15+
"name": "Gender",
16+
"options": [
17+
{
18+
"id": "1",
19+
"localizedText": "Male",
20+
"text": "Male"
21+
},
22+
{
23+
"id": "2",
24+
"localizedText": "Female",
25+
"text": "Female"
26+
}
27+
],
28+
"state": "ACTIVE",
29+
"text": "What is your gender?",
30+
"tier": "Standard",
31+
"type": "LIST"
32+
},
33+
{
34+
"category": {
35+
"mainCategory": {
36+
"id": "DEMOGRAPHIC",
37+
"localizedText": "Demographic",
38+
"text": "Demographic"
39+
}
40+
},
41+
"format": "^(1[8]-1[9]|1[89]-[2-9][0-9]|[2-9][0-9]-[2-9][0-9])$",
42+
"id": "13",
43+
"isAllowedInFilters": true,
44+
"isAllowedInQuotas": true,
45+
"localizedText": "No question; generated by the database",
46+
"name": "Age",
47+
"state": "ACTIVE",
48+
"text": "No question; generated by the database",
49+
"tier": "Standard",
50+
"type": "INTEGER_RANGE"
51+
},
52+
{
53+
"category": {
54+
"mainCategory": {
55+
"id": "DEMOGRAPHIC",
56+
"localizedText": "Demographic",
57+
"text": "Demographic"
58+
}
59+
},
60+
"format": "^\\d{10}$",
61+
"id": "1500",
62+
"isAllowedInFilters": true,
63+
"isAllowedInQuotas": false,
64+
"localizedText": "Respondent Identifier",
65+
"name": "Respondent Identifier",
66+
"state": "ACTIVE",
67+
"text": "Respondent Identifier",
68+
"tier": "Standard",
69+
"type": "INTEGER"
70+
}
71+
],
72+
"meta": {
73+
"links": {
74+
"first": "https://api.researchnow.com/sample/v1/attributes/US/en?offset=0",
75+
"last": "https://api.researchnow.com/sample/v1/attributes/US/en?offset=173",
76+
"next": "https://api.researchnow.com/sample/v1/attributes/US/en?offset=10",
77+
"prev": "https://api.researchnow.com/sample/v1/attributes/US/en?offset=0",
78+
"self": "https://api.researchnow.com/sample/v1/attributes/US/en"
79+
},
80+
"pageSize": 10,
81+
"total": 183
82+
},
83+
"status": {
84+
"errors": [],
85+
"message": "success"
86+
}
387
}

0 commit comments

Comments
 (0)