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

Uploaded Source

Built Distribution

gajou-0.3.3-py3-none-any.whl (12.5 kB view hashes)

Uploaded Python 3

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