Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

An extended parametrizing plugin of pytest.

Project description

pytest-xpara is an extended parametrizing plugin of pytest.


pip install pytest-xpara


py.test --xpara


import pytest

def test_bar(lhs, rhs):
    assert lhs == -rhs
# test_foo.yaml
  args: lhs,rhs
    - lhs: 1
      rhs: -1
    - lhs: -1
      rhs: 1
    - left_to_right
    - right_to_left
$ py.test -v --xpara
========================== test session starts ===========================
platform darwin -- Python 2.7.12, pytest-3.0.5, py-1.4.32, pluggy-0.4.0
cachedir: ../.cache
rootdir: /Users/tonyseek/Sites/pytest-xpara, inifile: setup.cfg
plugins: xpara-0.0.0, cov-2.4.0
collecting ... collected 2 items[left_to_right] PASSED[right_to_left] PASSED

======================== 2 passed in 0.03 seconds ========================


If you want to report bugs or request features, please feel free to open issues or create pull requests on GitHub.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-xpara, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pytest_xpara-0.1.1-py2.py3-none-any.whl (5.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pytest-xpara-0.1.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page