# pytest-owner
![Languate - Python](https://img.shields.io/badge/language-python-blue.svg)
![PyPI - License](https://img.shields.io/pypi/l/pytest-owner)
![PyPI](https://img.shields.io/pypi/v/pytest-owner)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pytest-owner)
为用例增加归属人owner标记,运行用例时可以使用--owner指定用例归属人运行。
## 安装方法
```shell
pip install pytest-owner
```
## 使用方式
```python
# filename: test_pytest_owner.py
@pytest.mark.owner('hzc')
def test_a():
pass
@pytest.mark.owner('superhin')
def test_b():
pass
```
使用以下命令指定归属人运行,支持指定多个归属人
```shell
pytest test_pytest_owner.py --owner=hzc --owner=superhin
```
另外,该插件提供了额外的名为owner的Fixture函数,以共获取当前指定的owner列表。
Raw data
{
"_id": null,
"home_page": "https://github.com/hanzhichao/pytest-status",
"name": "pytest-status",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "pytest, py.test, pytest-status, test status, pytest tester",
"author": "Han Zhichao",
"author_email": "superhin@126.com",
"download_url": "https://files.pythonhosted.org/packages/4d/ec/dea2835ecb9faecebf7478563254ee6e7835c05c0c9b1f65520e0f1a7327/pytest_status-0.1.1.tar.gz",
"platform": null,
"description": "# pytest-owner\n![Languate - Python](https://img.shields.io/badge/language-python-blue.svg)\n![PyPI - License](https://img.shields.io/pypi/l/pytest-owner)\n![PyPI](https://img.shields.io/pypi/v/pytest-owner)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/pytest-owner)\n\n\u4e3a\u7528\u4f8b\u589e\u52a0\u5f52\u5c5e\u4ebaowner\u6807\u8bb0\uff0c\u8fd0\u884c\u7528\u4f8b\u65f6\u53ef\u4ee5\u4f7f\u7528--owner\u6307\u5b9a\u7528\u4f8b\u5f52\u5c5e\u4eba\u8fd0\u884c\u3002\n\n## \u5b89\u88c5\u65b9\u6cd5\n```shell\npip install pytest-owner\n```\n## \u4f7f\u7528\u65b9\u5f0f\n```python\n# filename: test_pytest_owner.py\n@pytest.mark.owner('hzc')\ndef test_a():\n pass\n \n@pytest.mark.owner('superhin')\ndef test_b():\n pass\n```\n\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6307\u5b9a\u5f52\u5c5e\u4eba\u8fd0\u884c\uff0c\u652f\u6301\u6307\u5b9a\u591a\u4e2a\u5f52\u5c5e\u4eba\n```shell\npytest test_pytest_owner.py --owner=hzc --owner=superhin\n```\n\u53e6\u5916\uff0c\u8be5\u63d2\u4ef6\u63d0\u4f9b\u4e86\u989d\u5916\u7684\u540d\u4e3aowner\u7684Fixture\u51fd\u6570\uff0c\u4ee5\u5171\u83b7\u53d6\u5f53\u524d\u6307\u5b9a\u7684owner\u5217\u8868\u3002\n",
"bugtrack_url": null,
"license": "MIT license",
"summary": "Add status mark for tests",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/hanzhichao/pytest-status"
},
"split_keywords": [
"pytest",
" py.test",
" pytest-status",
" test status",
" pytest tester"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4decdea2835ecb9faecebf7478563254ee6e7835c05c0c9b1f65520e0f1a7327",
"md5": "bc922a5dcced4dbe69d5d1ade84adc71",
"sha256": "2d0864d9624fa67e51f0beea206046faf742059d1d7f72f45fae302431da0408"
},
"downloads": -1,
"filename": "pytest_status-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "bc922a5dcced4dbe69d5d1ade84adc71",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3544,
"upload_time": "2024-08-22T09:32:25",
"upload_time_iso_8601": "2024-08-22T09:32:25.970455Z",
"url": "https://files.pythonhosted.org/packages/4d/ec/dea2835ecb9faecebf7478563254ee6e7835c05c0c9b1f65520e0f1a7327/pytest_status-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-22 09:32:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hanzhichao",
"github_project": "pytest-status",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "pytest",
"specs": []
}
],
"lcname": "pytest-status"
}