pytest-autofixture


Namepytest-autofixture JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
Summarysimplify pytest fixtures
upload_time2024-08-01 14:50:14
maintainerNone
docs_urlNone
authorDaniel Pepper
requires_python>=3
licenseThe MIT License (MIT) Copyright (c) 2024 Daniel Pepper Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            pytest-autofixture
======
Simplify pytest fixtures by making them automagically available.  Tests can reference fixtures without needing to reference them as function parameters.


### Install
```pip install pytest-autofixture```


### Usage
```python
# conftest.py
import pytest

@pytest.fixture
def one():
    return 1


# test_one.py
def test_one():
  assert one == 1
```

----
[![Coverage Status](https://coveralls.io/repos/github/dpep/pytest-autofixture/badge.svg?branch=main)](https://coveralls.io/github/dpep/pytest-autofixture?branch=main)
[![installs](https://img.shields.io/pypi/dm/pytest-autofixture?label=installs)](https://pypi.org/project/pytest-autofixture)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pytest-autofixture",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": null,
    "keywords": null,
    "author": "Daniel Pepper",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/95/2f/814b65778b897fbf798376654c462fc1e60cd43bdf4ac96afbca63cc05d6/pytest_autofixture-0.2.1.tar.gz",
    "platform": null,
    "description": "pytest-autofixture\n======\nSimplify pytest fixtures by making them automagically available.  Tests can reference fixtures without needing to reference them as function parameters.\n\n\n### Install\n```pip install pytest-autofixture```\n\n\n### Usage\n```python\n# conftest.py\nimport pytest\n\n@pytest.fixture\ndef one():\n    return 1\n\n\n# test_one.py\ndef test_one():\n  assert one == 1\n```\n\n----\n[![Coverage Status](https://coveralls.io/repos/github/dpep/pytest-autofixture/badge.svg?branch=main)](https://coveralls.io/github/dpep/pytest-autofixture?branch=main)\n[![installs](https://img.shields.io/pypi/dm/pytest-autofixture?label=installs)](https://pypi.org/project/pytest-autofixture)\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2024 Daniel Pepper  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "simplify pytest fixtures",
    "version": "0.2.1",
    "project_urls": {
        "Homepage": "https://github.com/dpep/pytest-autofixture"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "121b49ac05a0e867b1bc6ce6e98e709ace40e9ef28a46a13d7fa83d731e302f8",
                "md5": "a736ebc722cbc0e4bf4899b6006d8f63",
                "sha256": "bd2abcab27858d5ccfac439336e69210d534e55b7ed8313e2297cbfdcc891c4d"
            },
            "downloads": -1,
            "filename": "pytest_autofixture-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a736ebc722cbc0e4bf4899b6006d8f63",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 3871,
            "upload_time": "2024-08-01T14:50:13",
            "upload_time_iso_8601": "2024-08-01T14:50:13.348530Z",
            "url": "https://files.pythonhosted.org/packages/12/1b/49ac05a0e867b1bc6ce6e98e709ace40e9ef28a46a13d7fa83d731e302f8/pytest_autofixture-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "952f814b65778b897fbf798376654c462fc1e60cd43bdf4ac96afbca63cc05d6",
                "md5": "2868b8cfbeee862eb6a5a17e52e07ba6",
                "sha256": "0a6f4a08db1eaf75f76e77733b7805c2b89c5f835e29b452ee92fc528fc6d504"
            },
            "downloads": -1,
            "filename": "pytest_autofixture-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2868b8cfbeee862eb6a5a17e52e07ba6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 3246,
            "upload_time": "2024-08-01T14:50:14",
            "upload_time_iso_8601": "2024-08-01T14:50:14.818369Z",
            "url": "https://files.pythonhosted.org/packages/95/2f/814b65778b897fbf798376654c462fc1e60cd43bdf4ac96afbca63cc05d6/pytest_autofixture-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-01 14:50:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dpep",
    "github_project": "pytest-autofixture",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pytest-autofixture"
}
        
Elapsed time: 2.71583s