Skip to content

Commit

Permalink
test(words): add test files
Browse files Browse the repository at this point in the history
  • Loading branch information
CapooL committed Dec 6, 2023
1 parent c069685 commit 746cf46
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 37 deletions.
41 changes: 22 additions & 19 deletions tests/quiz_paper_record_200.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"item": [
{
"id": "1e2e8b79-5250-482c-ab72-33621e2fe36c",
"id": "3fd5e314-9ac4-423b-afb5-d47ebdc83844",
"name": "LG0101 账号密码登录(登录用户admin)",
"request": {
"url": {
Expand Down Expand Up @@ -186,6 +186,7 @@
"updatedAt": "2021-08-12T16:27:18.000Z",
"deletedAt": null,
"folderId": 0,
"responseExamples": [],
"schemaDefinitions": {}
},
"requestDefinition": {
Expand Down Expand Up @@ -230,7 +231,7 @@
}
},
{
"id": "3d235eeb-bdac-42f3-aadb-4e657426acd6",
"id": "7235b944-3cef-4229-8e5c-cc35aa59c19f",
"name": "QZ0102 增加单个测试(QZ0102 增加单个测试)",
"request": {
"url": {
Expand Down Expand Up @@ -306,6 +307,7 @@
"updatedAt": "2022-07-23T08:30:31.000Z",
"deletedAt": null,
"folderId": 0,
"responseExamples": [],
"schemaDefinitions": {
"1097305": {
"type": "object",
Expand Down Expand Up @@ -601,7 +603,7 @@
}
},
{
"id": "85f44dc4-8743-4d68-9c67-668c534ed8b2",
"id": "aeee69de-c577-48ad-99c5-9ba7cf1d20ac",
"name": "QZ0102 增加单个测试(QZ0102 增加单个测试)",
"request": {
"url": {
Expand Down Expand Up @@ -677,6 +679,7 @@
"updatedAt": "2022-07-23T08:30:31.000Z",
"deletedAt": null,
"folderId": 0,
"responseExamples": [],
"schemaDefinitions": {
"1097305": {
"type": "object",
Expand Down Expand Up @@ -972,7 +975,7 @@
}
},
{
"id": "0a2f1675-f1c0-4496-a6ff-922c22bbf6bf",
"id": "f5aa0b57-7a99-4719-88e6-1ba731e342a5",
"name": "QZ0203 测试题组卷(QZ0203 测试题组卷)",
"request": {
"url": {
Expand Down Expand Up @@ -1095,6 +1098,7 @@
"defaultEnable": true,
"projectId": 404238,
"ordering": 1,
"responseExamples": [],
"schemaDefinitions": {
"1097305": {
"type": "object",
Expand Down Expand Up @@ -1448,7 +1452,7 @@
}
},
{
"id": "653d041c-f6fe-4732-94b7-66d80e6ce846",
"id": "0c259dcf-a0fa-4eea-be9d-11816b4b7d24",
"name": "QZ0204 查询所有试卷(QZ0204 查询所有试卷)",
"request": {
"url": {
Expand Down Expand Up @@ -1519,6 +1523,7 @@
"defaultEnable": true,
"projectId": 404238,
"ordering": 1,
"responseExamples": [],
"schemaDefinitions": {
"1097305": {
"type": "object",
Expand Down Expand Up @@ -1855,7 +1860,7 @@
}
},
{
"id": "32a10576-40ac-40ec-9c7b-e2f8e1c49a75",
"id": "a6e25ad3-2659-4794-b92c-365581830cd1",
"name": "QZ0205 查询特定试卷(QZ0205 查询特定试卷)",
"request": {
"url": {
Expand Down Expand Up @@ -2244,7 +2249,7 @@
}
},
{
"id": "57f7c0ef-4e0a-4121-91ca-2992a4a860f5",
"id": "01858288-2699-44f4-8bec-05c76c1668d4",
"name": "QZ0301 创建答卷记录(QZ0301 创建答卷记录)",
"request": {
"url": {
Expand All @@ -2264,7 +2269,7 @@
"query": [
{
"disabled": false,
"key": "examine",
"key": "contributor",
"value": "{{user_id}}"
},
{
Expand Down Expand Up @@ -2354,8 +2359,8 @@
}
],
"responseDefinition": {
"createdAt": "2023-11-30T07:41:07.842Z",
"updatedAt": "2023-11-30T07:41:07.842Z",
"createdAt": "2023-12-06T15:06:26.448Z",
"updatedAt": "2023-12-06T15:06:26.448Z",
"name": "成功",
"code": 200,
"contentType": "json",
Expand Down Expand Up @@ -2396,7 +2401,7 @@
}
},
{
"id": "ff3879a2-538c-4c7a-9ebb-97b045ab50a6",
"id": "42b228e3-4a21-4c46-a132-3ee4fd01c9cf",
"name": "QZ0302 获取用户答卷记录(QZ0302 获取用户答卷记录)",
"request": {
"url": {
Expand Down Expand Up @@ -2486,7 +2491,6 @@
"apiDetailId": 129251034,
"tempId": "1701276183847",
"id": 361145208,
"responseExamples": [],
"schemaDefinitions": {
"1077996": {
"type": "object",
Expand Down Expand Up @@ -2894,7 +2898,7 @@
}
},
{
"id": "bf107ee1-d6b8-473c-8804-637a71357ba7",
"id": "40a2001d-8f8c-4bf9-a734-f6a4b82c1b69",
"name": "QZ0303 查询单个答卷记录(QZ0303 查询单个答卷记录)",
"request": {
"url": {
Expand Down Expand Up @@ -2957,7 +2961,6 @@
"apiDetailId": 129321574,
"tempId": "1701312853707",
"id": 361297699,
"responseExamples": [],
"schemaDefinitions": {
"1077996": {
"type": "object",
Expand Down Expand Up @@ -3822,13 +3825,14 @@
"default": "http://127.0.0.1:8000"
},
"variable": {
"id": "d4fede42-5894-4f3e-9824-7857c70324fb",
"id": "1be84521-0df7-4447-8524-1044eb45c639",
"name": "测试环境",
"values": [
{
"type": "any",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWQiOjEsImV4cCI6MTcwMTkxNDE5Ni41MzcxOX0.tLsM3qHeK_cXKwT9rgv1GwOZG-NbVMyIPukNxsYjnEU",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWQiOjEsImV4cCI6MTcwMjQ3MjczNC44NzEwN30._yvdJw8014yAc0uFvW_mQHVzB5f9l8rxVfJ3SsGKBzQ",
"key": "token",
"isBindInitial": false,
"initialValue": ""
},
{
Expand Down Expand Up @@ -3967,8 +3971,7 @@
"type": "any",
"value": "DJ000014",
"key": "paper_record_id",
"isBindInitial": false,
"initialValue": ""
"initialValue": "DJ000014"
}
]
},
Expand All @@ -3984,7 +3987,7 @@
"baseUrl": "",
"baseUrls": {},
"variable": {
"id": "6b288f42-3e9e-4bde-8e56-ebd1885f1526",
"id": "dedd9b95-6079-4b70-9822-aeb66ba8bd12",
"values": []
},
"parameter": {
Expand Down
40 changes: 22 additions & 18 deletions tests/quiz_paper_record_404.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"item": [
{
"id": "5d3b8f41-9e2f-48b1-844b-47ead84ed29a",
"id": "db445c9b-66b6-42aa-9fa8-a57b1a1ebb3a",
"name": "LG0101 账号密码登录(登录用户admin)",
"request": {
"url": {
Expand Down Expand Up @@ -186,6 +186,7 @@
"updatedAt": "2021-08-12T16:27:18.000Z",
"deletedAt": null,
"folderId": 0,
"responseExamples": [],
"schemaDefinitions": {}
},
"requestDefinition": {
Expand Down Expand Up @@ -230,7 +231,7 @@
}
},
{
"id": "90782746-7ea6-4063-bdf1-721f3c405ff4",
"id": "14c672c5-6821-4d92-8a83-ec8981fe8701",
"name": "QZ0102 增加单个测试(QZ0102 增加单个测试)",
"request": {
"url": {
Expand Down Expand Up @@ -306,6 +307,7 @@
"updatedAt": "2022-07-23T08:30:31.000Z",
"deletedAt": null,
"folderId": 0,
"responseExamples": [],
"schemaDefinitions": {
"1097305": {
"type": "object",
Expand Down Expand Up @@ -601,7 +603,7 @@
}
},
{
"id": "a70a7285-f9e1-4c20-94f0-de80a5b83039",
"id": "c0299fa7-1dce-41bb-9821-a61603198b89",
"name": "QZ0102 增加单个测试(QZ0102 增加单个测试)",
"request": {
"url": {
Expand Down Expand Up @@ -677,6 +679,7 @@
"updatedAt": "2022-07-23T08:30:31.000Z",
"deletedAt": null,
"folderId": 0,
"responseExamples": [],
"schemaDefinitions": {
"1097305": {
"type": "object",
Expand Down Expand Up @@ -972,7 +975,7 @@
}
},
{
"id": "fedb64ab-bac1-41e7-a054-f00d606a50d5",
"id": "a3badf2b-4862-4c31-80e2-8e3ba2bad9bf",
"name": "QZ0203 测试题组卷(QZ0203 测试题组卷)",
"request": {
"url": {
Expand Down Expand Up @@ -1095,6 +1098,7 @@
"defaultEnable": true,
"projectId": 404238,
"ordering": 1,
"responseExamples": [],
"schemaDefinitions": {
"1097305": {
"type": "object",
Expand Down Expand Up @@ -1448,7 +1452,7 @@
}
},
{
"id": "a86e6113-5574-442f-ac2c-b590cb344c95",
"id": "3d393c2c-a93b-4698-bda4-0856d0b47703",
"name": "QZ0204 查询所有试卷(QZ0204 查询所有试卷)",
"request": {
"url": {
Expand Down Expand Up @@ -1519,6 +1523,7 @@
"defaultEnable": true,
"projectId": 404238,
"ordering": 1,
"responseExamples": [],
"schemaDefinitions": {
"1097305": {
"type": "object",
Expand Down Expand Up @@ -1855,7 +1860,7 @@
}
},
{
"id": "a5101d4a-c4d3-4a04-8ba3-7aa3e0d2cb02",
"id": "6d472f1d-3936-4365-870a-a2d3a01613f9",
"name": "QZ0205 查询特定试卷(QZ0205 查询特定试卷)",
"request": {
"url": {
Expand Down Expand Up @@ -2244,7 +2249,7 @@
}
},
{
"id": "8fcde523-22a7-48a3-89be-1103f72ad9d7",
"id": "0569f0d5-7393-4b9b-a815-0417bca395e8",
"name": "QZ0301 创建答卷记录(QZ0301 创建答卷记录)",
"request": {
"url": {
Expand All @@ -2264,7 +2269,7 @@
"query": [
{
"disabled": false,
"key": "examine",
"key": "contributor",
"value": "{{user_id}}"
},
{
Expand Down Expand Up @@ -2354,8 +2359,8 @@
}
],
"responseDefinition": {
"createdAt": "2023-11-30T07:41:07.842Z",
"updatedAt": "2023-11-30T07:41:07.842Z",
"createdAt": "2023-12-06T15:06:26.448Z",
"updatedAt": "2023-12-06T15:06:26.448Z",
"name": "成功",
"code": 200,
"contentType": "json",
Expand Down Expand Up @@ -2396,7 +2401,7 @@
}
},
{
"id": "c7506d9b-f83c-4b53-ae30-face4493f72c",
"id": "15d6d904-d289-4b58-ba24-c4baf6dc839c",
"name": "QZ0302 获取用户答卷记录(QZ0302 获取用户答卷记录)",
"request": {
"url": {
Expand Down Expand Up @@ -2486,7 +2491,6 @@
"apiDetailId": 129251034,
"tempId": "1701276183847",
"id": 361145208,
"responseExamples": [],
"schemaDefinitions": {
"1077996": {
"type": "object",
Expand Down Expand Up @@ -2894,7 +2898,7 @@
}
},
{
"id": "599b47a8-df6e-4255-a70f-f41f1102c981",
"id": "ac20dcc8-e186-4f50-97cf-8a0b5bb02659",
"name": "QZ0303 查询单个答卷记录(QZ0303 查询单个答卷记录)",
"request": {
"url": {
Expand Down Expand Up @@ -3430,13 +3434,14 @@
"default": "http://127.0.0.1:8000"
},
"variable": {
"id": "c22a19c8-aa6e-4ce6-b71b-0939438f34de",
"id": "9aa7c71d-2125-4ddf-a1d7-b07631eff53d",
"name": "测试环境",
"values": [
{
"type": "any",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWQiOjEsImV4cCI6MTcwMTkxNDE5Ni41MzcxOX0.tLsM3qHeK_cXKwT9rgv1GwOZG-NbVMyIPukNxsYjnEU",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWQiOjEsImV4cCI6MTcwMjQ3MjczNC44NzEwN30._yvdJw8014yAc0uFvW_mQHVzB5f9l8rxVfJ3SsGKBzQ",
"key": "token",
"isBindInitial": false,
"initialValue": ""
},
{
Expand Down Expand Up @@ -3575,8 +3580,7 @@
"type": "any",
"value": "DJ000014",
"key": "paper_record_id",
"isBindInitial": false,
"initialValue": ""
"initialValue": "DJ000014"
}
]
},
Expand All @@ -3592,7 +3596,7 @@
"baseUrl": "",
"baseUrls": {},
"variable": {
"id": "6b288f42-3e9e-4bde-8e56-ebd1885f1526",
"id": "dedd9b95-6079-4b70-9822-aeb66ba8bd12",
"values": []
},
"parameter": {
Expand Down

0 comments on commit 746cf46

Please sign in to comment.