Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/decorators.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2015-2018 The Bitcoin developers | # Copyright (c) 2015-2018 The Bitcoin developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
""" | """ | ||||
Python test decorators to provide various attributes the test_runner can | Python test decorators to provide various attributes the test_runner can | ||||
examine | examine | ||||
""" | """ | ||||
def extended(cls): | def tags(*tags): | ||||
cls.extended = True | def decorater(cls): | ||||
cls.test_tags = tags | |||||
return cls | return cls | ||||
return decorater |