mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-04 02:26:16 +01:00
- GET decorator: use name of the original method for the wrapper method
This commit is contained in:
parent
5b6aa0a4fc
commit
71e0b3ee34
@ -54,6 +54,9 @@ def GET(fullurl, **kwargs):
|
||||
def wrapped_test_method(*args):
|
||||
addExpectedRequest('GET', fullurl, **kwargs)
|
||||
test_method(*args)
|
||||
# "rename" method otherwise we cannot specify a TestCaseClass.testName
|
||||
# cmdline arg when using unittest.main()
|
||||
wrapped_test_method.__name__ = test_method.__name__
|
||||
return wrapped_test_method
|
||||
return decorate
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user