Skip to content

Commit b9df7fb

Browse files
authored
Merge pull request #122 from Integration-Automation/dev
Dev
2 parents 125c062 + a4e3b5f commit b9df7fb

File tree

5 files changed

+89
-68
lines changed

5 files changed

+89
-68
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: APITestka Dev Python3.9
1+
name: APITestka Dev Python3.12
22

33
on:
44
push:
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: Set up Python 3.9
20+
- name: Set up Python 3.12
2121
uses: actions/setup-python@v3
2222
with:
23-
python-version: "3.9"
23+
python-version: "3.12"
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip wheel
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: APITestka Stable Python3.9
1+
name: APITestka Stable Python3.12
22

33
on:
44
push:
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: Set up Python 3.9
20+
- name: Set up Python 3.12
2121
uses: actions/setup-python@v3
2222
with:
23-
python-version: "3.9"
23+
python-version: "3.12"
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip wheel
Lines changed: 71 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,94 @@
11
# Unknown error
2-
error_message: str = "API tester error"
3-
wrong_http_method_error_message: str = "wrong http method"
4-
http_method_have_wrong_type: str = "get wrong type param"
2+
error_message: str = "Unknown API tester error"
3+
wrong_http_method_error_message: str = "Invalid HTTP method"
4+
http_method_have_wrong_type: str = "HTTP method parameter is of invalid type"
5+
56
# get data error
6-
get_data_error_message: str = "API tester can't get api data error"
7+
get_data_error_message: str = "Failed to retrieve API data"
8+
79
# Http Method error
8-
get_error_message: str = "API tester get error"
9-
get_json_error_message: str = "API tester get json error"
10-
put_error_message: str = "API tester put error"
11-
delete_error_message: str = "API tester delete error"
12-
post_error_message: str = "API tester post error"
13-
head_error_message: str = "API tester head error"
14-
options_error_message: str = "API tester options error"
15-
patch_error_message: str = "API tester patch error"
10+
get_error_message: str = "API tester GET request failed"
11+
get_json_error_message: str = "Failed to parse JSON from GET response"
12+
put_error_message: str = "API tester PUT request failed"
13+
delete_error_message: str = "API tester DELETE request failed"
14+
post_error_message: str = "API tester POST request failed"
15+
head_error_message: str = "API tester HEAD request failed"
16+
options_error_message: str = "API tester OPTIONS request failed"
17+
patch_error_message: str = "API tester PATCH request failed"
1618
session_error_message: str = "API tester session error"
19+
1720
# response code error
18-
response_code_error: str = "API tester get wrong response code"
21+
response_code_error: str = "Unexpected response code"
22+
1923
# response body error
20-
response_body_error: str = "API tester get wrong response body"
24+
response_body_error: str = "Invalid response body"
25+
2126
# response timeout error
22-
response_timeout_error: str = "API tester timeout"
27+
response_timeout_error: str = "Request timed out"
28+
2329
# response history error
24-
response_history_error: str = "API tester history error"
30+
response_history_error: str = "Response history error"
31+
2532
# response encoding error
26-
response_encoding_error: str = "API tester encoding error"
33+
response_encoding_error: str = "Response encoding error"
34+
2735
# response cookies error
28-
response_cookies_error: str = "API tester cookies error"
36+
response_cookies_error: str = "Response cookies error"
37+
2938
# response headers error
30-
response_headers_error: str = "API tester headers error"
39+
response_headers_error: str = "Response headers error"
40+
3141
# response content error
32-
response_content_error: str = "API tester content error"
42+
response_content_error: str = "Response content error"
43+
3344
# response text error
34-
response_text_error: str = "API tester text error"
45+
response_text_error: str = "Response text error"
46+
3547
# execute action error
36-
execute_action_error: str = "can't execute action"
48+
execute_action_error: str = "Failed to execute action"
49+
3750
# json error
38-
cant_find_json_error: str = "can't find json"
39-
cant_save_json_error: str = "can't save json"
40-
cant_save_json_report_record_us_null: str = "can't save json record is null"
41-
cant_reformat_json_error: str = "can't reformat json is type right?"
42-
cant_find_element_in_json_error: str = "can't find element in json"
43-
json_type_error: str = "json type error"
44-
wrong_json_data_error: str = "can't parser json"
51+
cant_find_json_error: str = "JSON element not found"
52+
cant_save_json_error: str = "Failed to save JSON"
53+
cant_save_json_report_record_us_null: str = "Cannot save JSON: record is null"
54+
cant_reformat_json_error: str = "Failed to reformat JSON: incorrect type"
55+
cant_find_element_in_json_error: str = "Cannot find element in JSON"
56+
json_type_error: str = "JSON type error"
57+
wrong_json_data_error: str = "Failed to parse JSON"
58+
4559
# XML error
46-
cant_read_xml_error: str = "can't read xml"
47-
xml_type_error: str = "xml type error"
60+
cant_read_xml_error: str = "Cannot read XML"
61+
xml_type_error: str = "XML type error"
62+
4863
# Executor error
49-
executor_data_error: str = "executor receive wrong data"
50-
executor_list_error: str = "executor receive wrong data list is none or wrong type"
64+
executor_data_error: str = "Executor received invalid data"
65+
executor_list_error: str = "Executor received invalid data: list is None or wrong type"
66+
5167
# API data check
52-
status_code_error: str = "request status code error"
53-
status_text_error: str = "request text error"
54-
status_content_error: str = "request content error"
55-
status_headers_error: str = "request headers error"
56-
status_history_error: str = "request history error"
57-
status_encoding_error: str = "request encoding error"
58-
status_cookies_error: str = "request cookies error"
59-
status_elapsed_error: str = "request elapsed error"
60-
status_requests_method_error: str = "requests method error"
61-
status_requests_url_error: str = "requests url error"
62-
status_requests_body_error: str = "requests body error"
68+
status_code_error: str = "Request status code error"
69+
status_text_error: str = "Request text error"
70+
status_content_error: str = "Request content error"
71+
status_headers_error: str = "Request headers error"
72+
status_history_error: str = "Request history error"
73+
status_encoding_error: str = "Request encoding error"
74+
status_cookies_error: str = "Request cookies error"
75+
status_elapsed_error: str = "Request elapsed time error"
76+
status_requests_method_error: str = "Invalid request method"
77+
status_requests_url_error: str = "Invalid request URL"
78+
status_requests_body_error: str = "Invalid request body"
79+
6380
# HTML
64-
html_generate_no_data_tag: str = "record is None"
81+
html_generate_no_data_tag: str = "No data for HTML generation"
82+
6583
# add command
66-
add_command_exception_tag: str = "command value type should be as method or function"
84+
add_command_exception_tag: str = "Command value must be a method or function"
85+
6786
# argparse
68-
argparse_get_wrong_data: str = "argparse receive wrong data"
87+
argparse_get_wrong_data: str = "Argparse received invalid data"
88+
6989
# Callback executor
70-
get_bad_trigger_method: str = "get bad trigger method, only accept kwargs and args"
71-
get_bad_trigger_function: str = "get bad trigger function only accept function in event_dict"
90+
get_bad_trigger_method: str = "Invalid trigger method: only accepts kwargs and args"
91+
get_bad_trigger_function: str = "Invalid trigger function: only functions in event_dict are accepted"
92+
7293
# Mock server
73-
get_bad_api_router_setting: str = "get bad router setting"
94+
get_bad_api_router_setting: str = "Invalid API router setting"

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Rename to build stable version
2-
# This is stable version
1+
# Rename to build dev version
2+
# This is dev version
33
[build-system]
44
requires = ["setuptools"]
55
build-backend = "setuptools.build_meta"
66

77
[project]
8-
name = "je_api_testka"
9-
version = "0.0.131"
8+
name = "je_api_testka_dev"
9+
version = "0.0.124"
1010
authors = [
1111
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
1212
]
1313
description = "Requests Automation Framework"
14-
requires-python = ">=3.9"
14+
requires-python = ">=3.10"
1515
license-files = ["LICENSE"]
1616
dependencies = [
1717
"requests", "Flask", "httpx"
1818
]
1919
classifiers = [
20-
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
2121
"Development Status :: 2 - Pre-Alpha",
2222
"Environment :: Win32 (MS Windows)",
2323
"Environment :: MacOS X",

dev.toml renamed to stable.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Rename to build dev version
2-
# This is dev version
1+
# Rename to build stable version
2+
# This is stable version
33
[build-system]
44
requires = ["setuptools"]
55
build-backend = "setuptools.build_meta"
66

77
[project]
8-
name = "je_api_testka_dev"
9-
version = "0.0.122"
8+
name = "je_api_testka"
9+
version = "0.0.133"
1010
authors = [
1111
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
1212
]
1313
description = "Requests Automation Framework"
14-
requires-python = ">=3.9"
14+
requires-python = ">=3.10"
1515
license-files = ["LICENSE"]
1616
dependencies = [
1717
"requests", "Flask", "httpx"
1818
]
1919
classifiers = [
20-
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
2121
"Development Status :: 2 - Pre-Alpha",
2222
"Environment :: Win32 (MS Windows)",
2323
"Environment :: MacOS X",

0 commit comments

Comments
 (0)