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.4.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.4.tar.gz.
File metadata
- Download URL: ptools_base-1.1.4.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 |
4c6aee8b678d993c2e92d1f8dac93c6e6603a3706b5c640e152bab2c92833cc9
|
|
| MD5 |
99bf272c535510a531ddd1dd6dc82c21
|
|
| BLAKE2b-256 |
7a781ce0d00f6dfc0550831e3d9ca0784710c0f2dc2974f6140df717b1a60519
|
File details
Details for the file ptools_base-1.1.4-py3-none-any.whl.
File metadata
- Download URL: ptools_base-1.1.4-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 |
3c0652de6ca7a973719b5e95a8aae9b42f05417817a37281b18a3a41dd82f417
|
|
| MD5 |
1b42b760760f684ec0875159ec2adfe1
|
|
| BLAKE2b-256 |
07a744eed3bdebdcbcf75ca096b9fd3f5c6b8529f987783faf93b84247ecc526
|