Skip to main content

Data management for Behave — typed tables, diff, dynamic examples, fixtures, secrets

Project description

behave-data

Data management for Behave — typed tables, diff, dynamic examples, fixtures, secrets.

Install

pip install behave-data

For development:

pip install -e ".[dev,yaml,excel]"

Quickstart

# features/environment.py
from behave_data import setup_data, before_step_hook

def before_all(context):
    setup_data(context)

def before_step(context, step):
    before_step_hook(context, step)
# features/steps/typing.py
from behave_data import typed_wrap

@then("the car should have")
def step_car(context):
    table = typed_wrap(context.table)
    cars = table.typed_objects(Car)
    for car in cars:
        assert car.doors == 4  # int, not str

License

MIT

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

behave_data-0.1.0.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

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

behave_data-0.1.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file behave_data-0.1.0.tar.gz.

File metadata

  • Download URL: behave_data-0.1.0.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for behave_data-0.1.0.tar.gz
Algorithm Hash digest
SHA256 775d947655c492b5bde1158a687ec94f1c90952c3335d416f9616b1d4e102f1d
MD5 b0676064160e7889598843b5c808a6ce
BLAKE2b-256 349def9a847e408e13353ea3898605a64d0c85e6054d0e7f84fbec1e10216949

See more details on using hashes here.

Provenance

The following attestation bundles were made for behave_data-0.1.0.tar.gz:

Publisher: release.yml on MathiasPaulenko/behave-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file behave_data-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: behave_data-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for behave_data-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ecb9581bbbcd0ac7c98a49e18a8bce39ba2458ff66dc37d4d93639c2c7e325c
MD5 61cd613a4256e566030534fffc05534e
BLAKE2b-256 b5f99cdadab25a697063d968ef7b40d8754aa4e02d87b0c26d59641c457b76bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for behave_data-0.1.0-py3-none-any.whl:

Publisher: release.yml on MathiasPaulenko/behave-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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