mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
WebUI tests: Make possible to use kwargs with @screenshot decorator
Reviewed-By: Petr Cech <pcech@redhat.com>
This commit is contained in:
@@ -95,9 +95,9 @@ def screenshot(fn):
|
|||||||
Should be applied on methods of UI_driver subclasses
|
Should be applied on methods of UI_driver subclasses
|
||||||
"""
|
"""
|
||||||
@wraps(fn)
|
@wraps(fn)
|
||||||
def screenshot_wrapper(*args):
|
def screenshot_wrapper(*args, **kwargs):
|
||||||
try:
|
try:
|
||||||
return fn(*args)
|
return fn(*args, **kwargs)
|
||||||
except unittest.SkipTest:
|
except unittest.SkipTest:
|
||||||
raise
|
raise
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user