Skip to main content

No project description provided

Project description

Piplinetest

A Python library for building HTTP pipeline tests based on pydantic.

Project Overview

This project provides base classes for constructing test steps and test classes.

Installation

You can install the piplinetest library using the following command:

pip install piplinetest

Usage

Import the required classes and functions:

from piplinetest import BaseTestStep, BasePipLineTest
from typing import List

# Create a test step:
class HttpTestStep(BaseTestStep):
    description: str = "test"
    url: str = "/api/request_log"
    method: str = "GET"
    headers: dict = {}
    process_methods_prefix = "tests.process_methods."
    pre_process_method = "pre_process:process_nothing"

# Create a test class instance:
class HttpPipelineTest(BasePipLineTest):
    description: str = "test"
    test_steps_list: List[HttpTestStep] = [
        HttpTestStep,
    ]

# Execute the test class:
t = HttpPipelineTest(host="http://127.0.0.1:5001")
t.execute()

Contributing

Contributions and issues are welcome. You can contribute to the project by following these steps:

  1. Fork the project
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Submit a pull request

Feel free to contribute code or raise any questions you may have.

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

piplinetest-0.2.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

piplinetest-0.2.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file piplinetest-0.2.1.tar.gz.

File metadata

  • Download URL: piplinetest-0.2.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.0 CPython/3.11.4 Darwin/22.5.0

File hashes

Hashes for piplinetest-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a439dae7616673cd8e3c85541f2e4391cabfe974f8b74583131ebc28d2a56289
MD5 88ff75f3e36009d738ede55b34eac5bf
BLAKE2b-256 547cf39b48f6ed7dfccaca9b927688f4d8d569d206d6a25e5f8ccf6cd2d33575

See more details on using hashes here.

File details

Details for the file piplinetest-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: piplinetest-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.0 CPython/3.11.4 Darwin/22.5.0

File hashes

Hashes for piplinetest-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 117dfc7718f706ee800bd08d00b9796c7f1ed8c9a92a8b2a53d5ee2692d8eab7
MD5 080a63fb4ecb4624fbc9b6282bc4b1bc
BLAKE2b-256 f3347371f4d36ce1202fef4edd2911a1bcfb5d91c6ab4643cd96462689152ad4

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