mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-27 17:38:17 -04:00
Merge pull request #3340 from alphagov/fix-decorator-ordering
Fix incorrect ordering in command wrapper
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user