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.5.tar.gz
(3.8 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.5.tar.gz.
File metadata
- Download URL: ptools_base-1.1.5.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47d6f948319a3c6321ae081ce5ce7b5755c3f091210050360e82a490089d0a68
|
|
| MD5 |
9ffa2b282900f0eed91e885c6219eda2
|
|
| BLAKE2b-256 |
f434c7fefce8d5fb645cb81fecc6499b8980e7ba4cebfccebad722a539e7c119
|
File details
Details for the file ptools_base-1.1.5-py3-none-any.whl.
File metadata
- Download URL: ptools_base-1.1.5-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
781b5244f70f7e51b55e6beff45f75e4440138ed516d55e1e2c2d08d082328d6
|
|
| MD5 |
a8b3d36437b767270f07a677c93dc1f4
|
|
| BLAKE2b-256 |
8fec161314a4fb0a0d7afd8ecc8c1ca099937b4d00536a41a1f0146976ac1915
|