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.6.3.tar.gz (4.0 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.6.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for piplinetest-0.6.3.tar.gz
Algorithm Hash digest
SHA256 d461a1d498021eaa8a644ceb9bc96b7b4ae11fb8b618fa45228d5d9deb7ceaf7
MD5 13ccb5a6b603d41268d8cd736cd557d7
BLAKE2b-256 76ba04669908792bf0f56f51606fea8a542cfe14d001b172d38f7a3060d3a390

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for piplinetest-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e3a9fbb5beb018d1c1c79df9cb57d8e498c5cefb98cf51ab6ca6e86de46a1141
MD5 1ee0ec1e48986d8d6797ce58fc159fc9
BLAKE2b-256 718fea4cbe59c417e4796a4cdfa12cd429f38fd1039c532a0e01b8361c5f7406

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