mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-09 12:35:48 +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):
|
def wrapped_test_method(*args):
|
||||||
addExpectedRequest('GET', fullurl, **kwargs)
|
addExpectedRequest('GET', fullurl, **kwargs)
|
||||||
test_method(*args)
|
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 wrapped_test_method
|
||||||
return decorate
|
return decorate
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user