Skip to main content

A pytest plugin for test driven data-wrangling (this is the development version of datatest's pytest integration).

Project description

Travis CI Build Status MIT License

The development version of datatest’s pytest integration.

Typically, only developers working on datatest’s pytest plugin should install this package. Other users are encouraged to install just datatest—this plugin comes bundled with it.

Requirements

Installation

For Developers

Clone the git repositories and use pip to perform an editable install from the cloned project directory:

git clone git@github.com:shawnbrown/datatest.git
git clone git@github.com:shawnbrown/pytest-datatest.git
pip install --editable ./datatest
pip install --no-deps --editable ./pytest-datatest

For Users

Don’t install this package—install datatest instead:

pip install datatest

For Users With Special Requirements

If you aren’t a datatest or plugin developer but instead need bug-fixes or features that are not yet available from the main datatest project, you can install “pytest-datatest” via pip from PyPI:

pip install datatest
pip install pytest-datatest

And if the version is PyPI isn’t new enough for your needs, you can install the plugin directly from the live GitHub repository (make sure to check that the build is “passing” before doing this):

pip install datatest
pip install --upgrade https://github.com/shawnbrown/pytest-datatest/archive/master.zip

Usage

When installed, this development version automatically overrides datatest’s bundled pytest integration. If you want to revert back to the bundled plugin, simply uninstall this version.

To disable the development version (and temporarily enable the bundled version) use:

pytest -p no:datatest_devel

To disable both the development and bundled versions use:

pytest -p no:datatest_devel -p no:datatest

Features

  • Provides a ‘mandatory’ marker to support incremental testing.

  • Provides an ‘–ignore-mandatory’ command line option to override the default ‘mandatory’ behavior.

  • Strips the leading “E “ prefix from ValidationError differences to help users more easily repurpose parts of the error message for allowed.specific(...) definitions.

License

Distributed under the terms of the MIT license, “pytest-datatest” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

pytest-datatest-0.1.3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

pytest_datatest-0.1.3-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-datatest-0.1.3.tar.gz.

File metadata

  • Download URL: pytest-datatest-0.1.3.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.20.0 CPython/3.6.6

File hashes

Hashes for pytest-datatest-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4ac985deec725eee03579f2d791ba9787bb5a98eefcfed6372ef1a54cac5881a
MD5 2b01eb6f8f9b1e0ab0eabce01fe7a836
BLAKE2b-256 381f4e453d183e7a9e9d45558e5de513c58a52cd65eb574560b146aadf63585e

See more details on using hashes here.

File details

Details for the file pytest_datatest-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_datatest-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.20.0 CPython/3.6.6

File hashes

Hashes for pytest_datatest-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ed5a4a43e4fcc7085ec3964a2b211914811a6a87daaacd3c2b94a16fb975dbd9
MD5 caadd0e46a9f818afc96153a2a3020ea
BLAKE2b-256 4fdd922027519fc6a14391d790adb1becb74c42ea4eaf6469bc06d56055193cc

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