Merge pull request #3340 from alphagov/fix-decorator-ordering

Fix incorrect ordering in command wrapper
This commit is contained in:
Ben Thorner
2021-10-08 15:01:01 +01:00
committed by GitHub

View File

@@ -95,8 +95,8 @@ class notify_command:
def __call__(self, func):
decorators = [
functools.wraps(func), # carry through function name, docstrings, etc.
click.command(name=self.name), # turn it into a click.Command
functools.wraps(func) # carry through function name, docstrings, etc.
]
# in the test environment the app context is already provided and having