mock-decorator


Namemock-decorator JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummaryCreate a mock object for a Decorator
upload_time2024-02-04 03:20:12
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License Copyright (c) 2024 WiredNerd 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 test mock decorator
VCS
bugtrack_url
requirements pytest pytest-sort pytest-cov callee
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Homepage](https://img.shields.io/badge/Homepage-github-white?logo=github)](https://github.com/WiredNerd/mock-decorator)
[![python 3.9 - 3.12](https://img.shields.io/badge/python-3.8%20to%203.12-orange?logo=python&logoColor=green)](https://pypi.org/project/mock-decorator)
[![PyPI - Version](https://img.shields.io/pypi/v/mock-decorator?logo=pypi&logoColor=white)](https://pypi.org/project/mock-decorator)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/mock-decorator)](https://pypistats.org/packages/mock-decorator)
[![PyPI - License](https://img.shields.io/pypi/l/mock-decorator)](https://github.com/WiredNerd/mock-decorator/blob/main/LICENSE)

[![Code Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FWiredNerd%2Fmock-decorator%2Fmain%2Fcode-coverage.json&query=%24.totals.percent_covered_display&suffix=%25&label=Code%20Coverage&color=teal&logo=pytest&logoColor=green)](https://pytest-cov.readthedocs.io)
[![Mutation Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FWiredNerd%2Fmock-decorator%2Fmain%2Fmutation-testing-report.json&query=%24.summary.coverage_display&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMTYuOTMzbW0iIGhlaWdodD0iMTMuNTNtbSIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMTYuOTMzIDEzLjUzIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIxLjEyODYiPjxwYXRoIGQ9Im0zLjEwMDIgMTIuODA0Yy0xLjA2NjItMC41NzEzOC0xLjk3MzUtMS41MTctMi4yMjgyLTIuNzI5OC0wLjM3ODA3LTEuNTU4OS0wLjM1MTE1LTMuMTk0MS0wLjE0NDc0LTQuNzc1IDAuMjE3OTQtMS4zODUgMS4zNjQzLTIuMzQ1NCAyLjQxMjQtMy4xNTI3IDAuOTk3NzQtMC42NzIwMSAyLjEwMzMtMS4yNjM1IDMuMjg3Ny0xLjQ5OTUgMS40MjY3LTAuMTcxNTcgMy4xMzQ0LTAuMTY3ODcgNC4xNTg5IDEuMDA4NiAwLjQ5OTQxIDAuNTI4NTEgMC42OTI5NiAxLjI1NzkgMC42MjI4NSAxLjk2OS0wLjAwNDkgMC44OTcxNCAwLjMwMzkzIDEuOTA3OCAxLjE4IDIuMzE0MyAxLjE0MzkgMC42NTU2OCAyLjUzMDggMC41NTMxMSAzLjcyMTQgMS4wODA4IDAuNzE1OTQgMC43MzgzMi0wLjI1NTQ2IDEuNjMzOC0wLjUxMDYxIDIuMzY1LTAuMzM5MDEgMC45Mz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IzM3M2M0MyIgc3Ryb2tlLXdpZHRoPSIxLjEyODYiLz48L3N2Zz4=&label=Mutation%20Coverage&color=3776b5)](https://github.com/WiredNerd/mock-decorator)

[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![Code Style: black](https://img.shields.io/badge/Code_Style-Black-black?logo=python&logoColor=black)](https://black.readthedocs.io)
[![Linter: ruff](https://img.shields.io/badge/Linter-Ruff-purple?logo=Ruff)](https://beta.ruff.rs/docs/)
[![Snyk Security](https://img.shields.io/badge/Security-Snyk-939?logo=snyk)](https://snyk.io/)

# Mock Decorator

Mock Decorator simplifes the process of creating a mock for a decorator.

## Features

* Can Mock Function Decorators.
* Can Mock Class Decorators.
* Can Mock Nested Decorators.
* Can Mock Simple Decorators. - like `@my_decorator`
* Can Mock Decorators with arguments. - like `@my_decorator(1)`
* Allows you to verify which Class or Function is decorated.
* Allows you to verify arguments passed to the decorator.

## Why Use Mock Decorator?

Mocking a decorator in python is more difficult than mocking other objects.  The trick is that part of the decorator code is executed at load time, and part is executed when the target function is called.  [Primer on Python Decorators](https://realpython.com/primer-on-python-decorators/) is the best article I've found explaining how decorators work.

When possible, it's best to validate the presence of a decorator by validating the effect(s) of the decorator.  But sometimes a mock is required.  

To mock a decorator, the decorator definition must be replaced with a mock before the decorated function is loaded.  [How to mock a decorator in Python](https://dev.to/stack-labs/how-to-mock-a-decorator-in-python-55jc) explains a method for creating a mock for a decorator.  There are also many examples in Stack Overflow.  But I find it very tedious to create a decorator mock.  And tricky to figure out which method was decorated, and what arguments were passed to the decorator.

Mock Decorator is an implementation of a general purpose decorator mock.  It tracks which function(s) were decorated, and which arguments were passed to the decorator.

## Installation

```
pip install mock-decorator --upgrade
```

## Usage

__Note:__ The decorator to be mocked, and the function or class being decorated must be located in different modules.

### Example Usage:

my_functions.py
```python3
from my_decorators import decorator_with_args

@my_dec(1,2)
def my_func(arg1, arg2="default"):
    return f"my_func: {arg1} {arg2} done"
```

test_my_functions.py
```python3
from mock_decorator import MockDecorator
import my_decorators, my_functions
from unittest import mock

def test_my_func():
    with mock.patch.object(my_decorators, "my_dec", MockDecorator()) as mock_dec:  # 1
        importlib.reload(my_functions)                                             # 2
    mock_dec.my_func.assert_called_once_with(1,2)                                  # 3
```

1. Replace the decorator in its module with an instance of MockDecorator.

   Template using mock from unitest: 

   ```python3
   with mock.patch.object(<decorator module>, "<decorator name>", MockDecorator()) as <mock_name>:
   ```

2. Import or Reload the module that includes the decorated function.

   During the loading of the module, the MockDecorator is called to create the decorator wrapper function.  At this time, the MockDecorator will add a MagicMock attribute to itself with the name of the target function.  It will then call the new attribute with the arguments passed to the decorator.

3. Validate the mocked decorator was called with expected arguments.

    Template: `<mock_name>.<decorated function name>.assert_called_once_with(<decorator args>)`

## Contribute

- Issue Tracker: https://github.com/WiredNerd/mock-decorator/issues
- Source Code: https://github.com/WiredNerd/mock-decorator

## Support

If you are having issues, please let us know.

I can be contacted at: pbuschmail-github@yahoo.com

Or by opening an issue: https://github.com/WiredNerd/mock-decorator/issues

## License

The project is licensed under the MIT license.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "mock-decorator",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "WiredNerd <pbuschmail-github@yahoo.com>",
    "keywords": "test,mock,decorator",
    "author": "",
    "author_email": "WiredNerd <pbuschmail-github@yahoo.com>",
    "download_url": "https://files.pythonhosted.org/packages/3b/9d/8f36ba330f6dfad7230beb4af3efe9ccf473344ffca8ff2a2f332ef1d157/mock-decorator-1.0.0.tar.gz",
    "platform": null,
    "description": "[![Homepage](https://img.shields.io/badge/Homepage-github-white?logo=github)](https://github.com/WiredNerd/mock-decorator)\n[![python 3.9 - 3.12](https://img.shields.io/badge/python-3.8%20to%203.12-orange?logo=python&logoColor=green)](https://pypi.org/project/mock-decorator)\n[![PyPI - Version](https://img.shields.io/pypi/v/mock-decorator?logo=pypi&logoColor=white)](https://pypi.org/project/mock-decorator)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/mock-decorator)](https://pypistats.org/packages/mock-decorator)\n[![PyPI - License](https://img.shields.io/pypi/l/mock-decorator)](https://github.com/WiredNerd/mock-decorator/blob/main/LICENSE)\n\n[![Code Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FWiredNerd%2Fmock-decorator%2Fmain%2Fcode-coverage.json&query=%24.totals.percent_covered_display&suffix=%25&label=Code%20Coverage&color=teal&logo=pytest&logoColor=green)](https://pytest-cov.readthedocs.io)\n[![Mutation Coverage](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FWiredNerd%2Fmock-decorator%2Fmain%2Fmutation-testing-report.json&query=%24.summary.coverage_display&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMTYuOTMzbW0iIGhlaWdodD0iMTMuNTNtbSIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMTYuOTMzIDEzLjUzIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIxLjEyODYiPjxwYXRoIGQ9Im0zLjEwMDIgMTIuODA0Yy0xLjA2NjItMC41NzEzOC0xLjk3MzUtMS41MTctMi4yMjgyLTIuNzI5OC0wLjM3ODA3LTEuNTU4OS0wLjM1MTE1LTMuMTk0MS0wLjE0NDc0LTQuNzc1IDAuMjE3OTQtMS4zODUgMS4zNjQzLTIuMzQ1NCAyLjQxMjQtMy4xNTI3IDAuOTk3NzQtMC42NzIwMSAyLjEwMzMtMS4yNjM1IDMuMjg3Ny0xLjQ5OTUgMS40MjY3LTAuMTcxNTcgMy4xMzQ0LTAuMTY3ODcgNC4xNTg5IDEuMDA4NiAwLjQ5OTQxIDAuNTI4NTEgMC42OTI5NiAxLjI1NzkgMC42MjI4NSAxLjk2OS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xLjAxODktMC43NTkzMi0xLjQxODQtMi4wMDYzLTAuMzI0MjUtMS44NjQzLTAuMzIwMzYtMy4yOTM3LTAuMDgyODQ2LTQuOTU5NiAwLjE4OTYxLTAuOTY0NTEgMi42MjMyLTAuOTYxNzQgMi45Nzg5LTAuODA3NTYiIGZpbGw9IiMzNzNjNDMiIHN0cm9rZT0iIzM3M2M0MyIgc3Ryb2tlLXdpZHRoPSIxLjEyODYiLz48L3N2Zz4=&label=Mutation%20Coverage&color=3776b5)](https://github.com/WiredNerd/mock-decorator)\n\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)\n[![Code Style: black](https://img.shields.io/badge/Code_Style-Black-black?logo=python&logoColor=black)](https://black.readthedocs.io)\n[![Linter: ruff](https://img.shields.io/badge/Linter-Ruff-purple?logo=Ruff)](https://beta.ruff.rs/docs/)\n[![Snyk Security](https://img.shields.io/badge/Security-Snyk-939?logo=snyk)](https://snyk.io/)\n\n# Mock Decorator\n\nMock Decorator simplifes the process of creating a mock for a decorator.\n\n## Features\n\n* Can Mock Function Decorators.\n* Can Mock Class Decorators.\n* Can Mock Nested Decorators.\n* Can Mock Simple Decorators. - like `@my_decorator`\n* Can Mock Decorators with arguments. - like `@my_decorator(1)`\n* Allows you to verify which Class or Function is decorated.\n* Allows you to verify arguments passed to the decorator.\n\n## Why Use Mock Decorator?\n\nMocking a decorator in python is more difficult than mocking other objects.  The trick is that part of the decorator code is executed at load time, and part is executed when the target function is called.  [Primer on Python Decorators](https://realpython.com/primer-on-python-decorators/) is the best article I've found explaining how decorators work.\n\nWhen possible, it's best to validate the presence of a decorator by validating the effect(s) of the decorator.  But sometimes a mock is required.  \n\nTo mock a decorator, the decorator definition must be replaced with a mock before the decorated function is loaded.  [How to mock a decorator in Python](https://dev.to/stack-labs/how-to-mock-a-decorator-in-python-55jc) explains a method for creating a mock for a decorator.  There are also many examples in Stack Overflow.  But I find it very tedious to create a decorator mock.  And tricky to figure out which method was decorated, and what arguments were passed to the decorator.\n\nMock Decorator is an implementation of a general purpose decorator mock.  It tracks which function(s) were decorated, and which arguments were passed to the decorator.\n\n## Installation\n\n```\npip install mock-decorator --upgrade\n```\n\n## Usage\n\n__Note:__ The decorator to be mocked, and the function or class being decorated must be located in different modules.\n\n### Example Usage:\n\nmy_functions.py\n```python3\nfrom my_decorators import decorator_with_args\n\n@my_dec(1,2)\ndef my_func(arg1, arg2=\"default\"):\n    return f\"my_func: {arg1} {arg2} done\"\n```\n\ntest_my_functions.py\n```python3\nfrom mock_decorator import MockDecorator\nimport my_decorators, my_functions\nfrom unittest import mock\n\ndef test_my_func():\n    with mock.patch.object(my_decorators, \"my_dec\", MockDecorator()) as mock_dec:  # 1\n        importlib.reload(my_functions)                                             # 2\n    mock_dec.my_func.assert_called_once_with(1,2)                                  # 3\n```\n\n1. Replace the decorator in its module with an instance of MockDecorator.\n\n   Template using mock from unitest: \n\n   ```python3\n   with mock.patch.object(<decorator module>, \"<decorator name>\", MockDecorator()) as <mock_name>:\n   ```\n\n2. Import or Reload the module that includes the decorated function.\n\n   During the loading of the module, the MockDecorator is called to create the decorator wrapper function.  At this time, the MockDecorator will add a MagicMock attribute to itself with the name of the target function.  It will then call the new attribute with the arguments passed to the decorator.\n\n3. Validate the mocked decorator was called with expected arguments.\n\n    Template: `<mock_name>.<decorated function name>.assert_called_once_with(<decorator args>)`\n\n## Contribute\n\n- Issue Tracker: https://github.com/WiredNerd/mock-decorator/issues\n- Source Code: https://github.com/WiredNerd/mock-decorator\n\n## Support\n\nIf you are having issues, please let us know.\n\nI can be contacted at: pbuschmail-github@yahoo.com\n\nOr by opening an issue: https://github.com/WiredNerd/mock-decorator/issues\n\n## License\n\nThe project is licensed under the MIT license.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 WiredNerd  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": "Create a mock object for a Decorator",
    "version": "1.0.0",
    "project_urls": {
        "Documentation": "https://github.com/WiredNerd/mock-decorator",
        "Homepage": "https://github.com/WiredNerd/mock-decorator",
        "Issue Tracker": "https://github.com/WiredNerd/mock-decorator/issues"
    },
    "split_keywords": [
        "test",
        "mock",
        "decorator"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "739d38e8d3f26c4658f7073e9aac174089b901a10ef36da305bad1a56f506188",
                "md5": "da0f71d485de4179e5ac6d5511babfdf",
                "sha256": "f972cd5a8bd823bd9822759b03278ac35337e427c4fea64f35ddb436f2fec57e"
            },
            "downloads": -1,
            "filename": "mock_decorator-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "da0f71d485de4179e5ac6d5511babfdf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6367,
            "upload_time": "2024-02-04T03:20:10",
            "upload_time_iso_8601": "2024-02-04T03:20:10.709584Z",
            "url": "https://files.pythonhosted.org/packages/73/9d/38e8d3f26c4658f7073e9aac174089b901a10ef36da305bad1a56f506188/mock_decorator-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b9d8f36ba330f6dfad7230beb4af3efe9ccf473344ffca8ff2a2f332ef1d157",
                "md5": "cfcd3b2b84c7d862ffb815819e39c97e",
                "sha256": "a8f386e42c7ac1629fde7b007fc873201f104824dffa93204c7115b3c8ed0d98"
            },
            "downloads": -1,
            "filename": "mock-decorator-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "cfcd3b2b84c7d862ffb815819e39c97e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 9661,
            "upload_time": "2024-02-04T03:20:12",
            "upload_time_iso_8601": "2024-02-04T03:20:12.301905Z",
            "url": "https://files.pythonhosted.org/packages/3b/9d/8f36ba330f6dfad7230beb4af3efe9ccf473344ffca8ff2a2f332ef1d157/mock-decorator-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-04 03:20:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "WiredNerd",
    "github_project": "mock-decorator",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "pytest",
            "specs": []
        },
        {
            "name": "pytest-sort",
            "specs": []
        },
        {
            "name": "pytest-cov",
            "specs": []
        },
        {
            "name": "callee",
            "specs": []
        }
    ],
    "lcname": "mock-decorator"
}
        
Elapsed time: 0.19214s