Skip to main content

Base classes and helpers to make QA autotests for API and CLI

Project description

牙城

CLI

  • BaseCLI - contains method to send command in terminal with logging. Allure can be passed for adding attaches to reports.
  • CLIResponse - dataclass for CLI response deserialization.
  • ReturnCodes - enum with basic CLI return codes.

HTTP

  • BaseHTTP - contains all basic HTTP methods with logging. Verifies response status and raises one of errors if status is not 2xx. Allure can be passed for adding attaches to reports.
  • HTTP errors - set of exceptions for typical HTTP error statuses.

gRPC

  • BaseInterceptor - adds logging and verifies response status. Allure can be passed for adding attaches to reports.
  • BaseStub - simple wrapper which adds BaseInterceptor to channel.
  • GRPCError - base gRPC exception.

DB

  • PostgresHelper - contains all basic commands with logging. Select-command supports simple caching. Can be useful with any query language like Pypika.
  • DatabaseError - simple DB exception.
  • Singleton - simple implementation of singleton used in DB helper to prevent unnecessary propagation of connections.

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

gajou-0.3.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

gajou-0.3.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file gajou-0.3.0.tar.gz.

File metadata

  • Download URL: gajou-0.3.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for gajou-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f5da45781eaa8ace1e038e13cce5f34993d7c6712f5715f1da9ccda9ab644f1f
MD5 810cbde467fb00f1088f5ecfd4612393
BLAKE2b-256 df19cc4cfe8ee0749719b27fd38d55ac5d6ef647347153dbdf033fe83653bc63

See more details on using hashes here.

File details

Details for the file gajou-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: gajou-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for gajou-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c109a7ff162f4899c2f2347f08b8f532b57ee68c892c2d06fae5846421b8399c
MD5 c4211b803c6197e1ab0ca0b376980167
BLAKE2b-256 cc90b6dcd757b5b2bd4e7a6b1f8ffc7426ee13a07c09123fb04800b26bdc6263

See more details on using hashes here.

Supported by

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