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.0.1.tar.gz
(3.4 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.0.1.tar.gz.
File metadata
- Download URL: ptools_base-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4528663ac6e9c0d56ee503739f2d54a61ad0d5329a308dfb79f0ff835a11642c
|
|
| MD5 |
fd4b8614d660c2087f091ca56731f598
|
|
| BLAKE2b-256 |
f9c057cda8a453c638472666662d0714ed6f2b1308203e2a8ee4010914c956c2
|
File details
Details for the file ptools_base-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ptools_base-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 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 |
708c6c3cb08dc5692a9f24a37c7a78f5c2ee89c40a8d8b4d8ccad6e6b176dffc
|
|
| MD5 |
e9298b0ae32037ece6aeeb8af53df860
|
|
| BLAKE2b-256 |
39af3ff03653ef715282235056503d56186130ab8d6600251e979b3960cff1b7
|