P Test Platform Tools Base Lib
Project description
ptools-base
P Test Platform Tools Base Lib
How to install
pip install -U ptools-base
How to write assert
from ptools_base.tool import write_asserts
from ptools_base.schema import AssertSchema, AssertSchemaResultEnum
write_asserts(
[
AssertSchema(
result=AssertSchemaResultEnum.SUCCESS,
content="your assert content"
),
AssertSchema(
result=AssertSchemaResultEnum.FAILED,
content="your assert content"
),
AssertSchema(
result=AssertSchemaResultEnum.SKIPPED,
content="your assert content"
)
]
)
How to copy extra data
from ptools_base.tool import copy_2_extra
# copy file to extra
file_path = "your file path"
copy_2_extra(file_path)
# copy dir to extra
dir_path = "your dir path"
copy_2_extra(dir_path)
How to write env
from ptools_base.schema import EnvSchema
from ptools_base.tool import write_envs
write_envs([EnvSchema(key="your env key", value="your env value")])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ptools_base-1.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ptools_base-1.1.0.tar.gz.
File metadata
- Download URL: ptools_base-1.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cb37da7474a5a7afdd54cfa22918167f15d1de0be2d1b00d56f21c6c35e63bc
|
|
| MD5 |
b05c8d408a488510370005b08f4e48d9
|
|
| BLAKE2b-256 |
62d29d7fea4c2cda2ced9634270949908394940203f52ed1d3e36c8953245a68
|
File details
Details for the file ptools_base-1.1.0-py3-none-any.whl.
File metadata
- Download URL: ptools_base-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e73d30d192807a5dacc9b47db07b32bbb86862e6870a5fdac3062c4a8a95ccd
|
|
| MD5 |
87fb1cfabe59f6da85681bf19bf6f699
|
|
| BLAKE2b-256 |
55644478d28fcbed30d33dca5de63c11623f3a93add5e664dad27ab33e6e575b
|