Skip to main content

P Test Platform Tools Base Lib

Project description

ptools-base

P Test Platform Tools Base Lib

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.0.tar.gz (3.4 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.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ptools_base-1.0.0.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

Hashes for ptools_base-1.0.0.tar.gz
Algorithm Hash digest
SHA256 07dd1782a03e380a3ebd549757222ddc81fd19c8c8c1b4aff2d6cf520be3f7fa
MD5 9ba8df8d4b78ab85168b7625b3f4c5b7
BLAKE2b-256 cfc32bf22abf6bc24f7d37c6f6ce52aba5926eb1409ef9a0b011456b37c64fe0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ptools_base-1.0.0-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

Hashes for ptools_base-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfe1d449cce92122c8f63dbb8f5f6ee3469e0df9573d7dda65c59bee9e697d7d
MD5 3d24ba568c72939db863ed34e0b7c485
BLAKE2b-256 5c749a4256770b7a7aa528553b6116f558a86838a8e8102181e716dc2a15e934

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