test: use pydoc docstring

This commit is contained in:
Erik Arvstedt 2020-08-21 22:36:08 +02:00
parent ed73627e02
commit 9237e5dc3d
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -33,11 +33,12 @@ def assert_running(unit):
if "is_interactive" in vars():
raise Exception()
### Tests
# The argument extra_tests is a dictionary from strings to functions. The string
# determines at which point of run_tests the corresponding function is executed.
def run_tests(extra_tests):
"""
:param extra_tests: Test functions that hook into the testing code below
:type extra_tests: Dict[str, Callable[]]
"""
test_security()
assert_running("bitcoind")