pytest-owner


Namepytest-owner JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/hanzhichao/pytest-owner
SummaryAdd owner mark for tests
upload_time2024-08-19 08:17:25
maintainerNone
docs_urlNone
authorHan Zhichao
requires_pythonNone
licenseMIT license
keywords pytest py.test pytest-owner test owner pytest tester
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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-owner",
    "name": "pytest-owner",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "pytest, py.test, pytest-owner, test owner, pytest tester",
    "author": "Han Zhichao",
    "author_email": "superhin@126.com",
    "download_url": "https://files.pythonhosted.org/packages/c6/f7/f9495f6457c30ccfea61b43a2ce2a9b2f00099fb96981d896a42d2ce3f01/pytest_owner-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 owner mark for tests",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/hanzhichao/pytest-owner"
    },
    "split_keywords": [
        "pytest",
        " py.test",
        " pytest-owner",
        " test owner",
        " pytest tester"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c6f7f9495f6457c30ccfea61b43a2ce2a9b2f00099fb96981d896a42d2ce3f01",
                "md5": "ce8fa3c48a88a9f3af0c8ce3e6a3d1f6",
                "sha256": "c15620336977538860e05631494e21c7f3844d783e9ca0ccb47f222cc7cf60c7"
            },
            "downloads": -1,
            "filename": "pytest_owner-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ce8fa3c48a88a9f3af0c8ce3e6a3d1f6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3506,
            "upload_time": "2024-08-19T08:17:25",
            "upload_time_iso_8601": "2024-08-19T08:17:25.667834Z",
            "url": "https://files.pythonhosted.org/packages/c6/f7/f9495f6457c30ccfea61b43a2ce2a9b2f00099fb96981d896a42d2ce3f01/pytest_owner-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-19 08:17:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hanzhichao",
    "github_project": "pytest-owner",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pytest-owner"
}
        
Elapsed time: 0.73906s