Skip to content

Commit

Permalink
Copy original function's signature when applying the tracking decorat…
Browse files Browse the repository at this point in the history
…or (#8)

* Copy original function's signature when setting up tracking

* Bump version to 0.2.2
  • Loading branch information
RaduG authored May 24, 2020
1 parent 034c0bd commit f00bff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pytest_func_cov/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def _(*args, **kwargs):

return f(*args, **kwargs)

_.__signature__ = inspect.signature(f)

# Re-wrap @classmethod
if is_classmethod:
_ = classmethod(_)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
setup(
name="pytest_func_cov",
packages=["pytest_func_cov"],
version="0.2.1",
version="0.2.2",
license="MIT",
description="Pytest plugin for measuring function coverage",
long_description=long_description,
Expand Down

0 comments on commit f00bff0

Please sign in to comment.