Skip to main content

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.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ptools_base-1.1.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file ptools_base-1.1.3.tar.gz.

File metadata

  • Download URL: ptools_base-1.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.10

File hashes

Hashes for ptools_base-1.1.3.tar.gz
Algorithm Hash digest
SHA256 4396a274e028412250b2d634cdfe551e2417c29f0b705ea4ec53e9a25141230f
MD5 edc1d497f16be6bf2292dca078b6830a
BLAKE2b-256 5e663441dc98b466bdf2a81ec76da37fd891e35fe9a86f14d3ad33147ff2398f

See more details on using hashes here.

File details

Details for the file ptools_base-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: ptools_base-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.10

File hashes

Hashes for ptools_base-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1f7976b08176061466498bd038a2d494cf12e44efe2459de1c58c45d4dc3ac69
MD5 555c090e7015f6fed040c583a6f9411a
BLAKE2b-256 81ee44158d9192c0eaeb10237c5f5e8737268644a3db7534efb6a08f6b733323

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page