Skip to content
Merged

Dev #92

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: LoadDensity Dev Python 3.9
name: LoadDensity Dev Python 3.12

on:
push:
Expand All @@ -17,10 +17,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.9"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: LoadDensity Stable Python3.9
name: LoadDensity Stable Python3.12

on:
push:
Expand All @@ -17,10 +17,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.9"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
Expand Down
6 changes: 3 additions & 3 deletions dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ build-backend = "setuptools.build_meta"

[project]
name = "je_load_density_dev"
version = "0.0.73"
version = "0.0.75"
authors = [
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
]
description = "Load & Stress Automation Freamework"
requires-python = ">=3.9"
requires-python = ">=3.10"
license-files = ["LICENSE"]
dependencies = [
"locust",
]
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Development Status :: 2 - Pre-Alpha",
"Environment :: Win32 (MS Windows)",
"Environment :: MacOS X",
Expand Down
37 changes: 22 additions & 15 deletions je_load_density/utils/exception/exception_tags.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
# locust error
not_found_locust_error: str = "locust not found"
not_found_locust_error: str = "Locust not found"

# json error
cant_reformat_json_error: str = "can't reformat json is type right?"
wrong_json_data_error: str = "can't parser json"
cant_find_json_error: str = "can't find json"
cant_save_json_error: str = "can't save json"
cant_generate_json_report: str = "can't generate json report"
cant_reformat_json_error: str = "can't reformat JSON: is the type correct?"
wrong_json_data_error: str = "can't parse JSON"
cant_find_json_error: str = "can't find JSON file"
cant_save_json_error: str = "can't save JSON file"
cant_generate_json_report: str = "can't generate JSON report"

# executor error
executor_data_error: str = "executor receive wrong data"
executor_list_error: str = "executor receive wrong data list is none or wrong type"
executor_data_error: str = "executor received invalid data"
executor_list_error: str = "executor received invalid data: list is empty or wrong type"

# HTML
html_generate_no_data_tag: str = "record is None"
html_generate_no_data_tag: str = "no records to generate HTML report"

# add command
add_command_exception_tag: str = "command value type should be as method or function"
add_command_exception_tag: str = "command value type must be a method or function"

# argparse
argparse_get_wrong_data: str = "argparse receive wrong data"
argparse_get_wrong_data: str = "argparse received invalid data"

# XML
cant_read_xml_error: str = "can't read xml"
xml_type_error: str = "xml type error"
cant_read_xml_error: str = "can't read XML"
xml_type_error: str = "XML type error"

# Callback executor
get_bad_trigger_method: str = "get bad trigger method, only accept kwargs and args"
get_bad_trigger_function: str = "get bad trigger function only accept function in event_dict"
get_bad_trigger_method: str = "invalid trigger method: only kwargs and args accepted"
get_bad_trigger_function: str = "invalid trigger function: only functions in event_dict accepted"
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ build-backend = "setuptools.build_meta"

[project]
name = "je_load_density"
version = "0.0.60"
version = "0.0.62"
authors = [
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
]
description = "Load & Stress Automation Freamework"
requires-python = ">=3.9"
requires-python = ">=3.10"
license-files = ["LICENSE"]
dependencies = [
"locust",
]
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Development Status :: 2 - Pre-Alpha",
"Environment :: Win32 (MS Windows)",
"Environment :: MacOS X",
Expand Down
Loading