MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / wrapper

Function wrapper

web/regression/python_test_utils/test_utils.py:1832–1843  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1830 def multi_user_decorator(func):
1831 @wraps(func)
1832 def wrapper(self, *args, **kwargs):
1833 main_tester = self.__class__.tester
1834 try:
1835 # Login with non-admin_user
1836 test_user = get_test_user(self, user)
1837 self.setTestClient(test_user)
1838
1839 # Call 'runTest' with new test client
1840 func(self, *args, **kwargs)
1841 finally:
1842 # Restore the original user and driver
1843 self.__class__.tester = main_tester
1844
1845 return wrapper
1846

Callers

nothing calls this directly

Calls 2

get_test_userFunction · 0.85
setTestClientMethod · 0.80

Tested by

no test coverage detected