Skip to main content

Add status mark for tests

Project description

pytest-owner

Languate - Python PyPI - License PyPI PyPI - Downloads

为用例增加归属人owner标记,运行用例时可以使用--owner指定用例归属人运行。

安装方法

pip install pytest-owner

使用方式

# filename: test_pytest_owner.py
@pytest.mark.owner('hzc')
def test_a():
    pass
    
@pytest.mark.owner('superhin')
def test_b():
    pass

使用以下命令指定归属人运行,支持指定多个归属人

pytest test_pytest_owner.py --owner=hzc --owner=superhin

另外,该插件提供了额外的名为owner的Fixture函数,以共获取当前指定的owner列表。

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_status-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file pytest_status-0.1.1.tar.gz.

File metadata

  • Download URL: pytest_status-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for pytest_status-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2d0864d9624fa67e51f0beea206046faf742059d1d7f72f45fae302431da0408
MD5 bc922a5dcced4dbe69d5d1ade84adc71
BLAKE2b-256 4decdea2835ecb9faecebf7478563254ee6e7835c05c0c9b1f65520e0f1a7327

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page