diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-07-16 22:05:14 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-07-16 22:06:47 +0100 |
commit | a0473442d1c22043f5a288bd9255c006fd85d947 (patch) | |
tree | f43dba69a69d16c0eed3690954fbe40c889f0abc /test/functional/test_framework | |
parent | 45750f61d65d5ac4a28333d8f676961037b25f55 (diff) |
scripted-diff: Add `__file__` argument to `BitcoinTestFramework.init()`
-BEGIN VERIFY SCRIPT-
sed -i -e 's/\s*().main\s*()/(__file__).main()/' $(git ls-files test/functional/*.py)
sed -i -e 's/def __init__(self)/def __init__(self, test_file)/' test/functional/test_framework/test_framework.py
-END VERIFY SCRIPT-
Diffstat (limited to 'test/functional/test_framework')
-rwxr-xr-x | test/functional/test_framework/test_framework.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index 9e44a11143..3887cc8545 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -92,7 +92,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass): This class also contains various public and private helper methods.""" - def __init__(self) -> None: + def __init__(self, test_file) -> None: """Sets test framework defaults. Do not override this method. Instead, override the set_test_params() method""" self.chain: str = 'regtest' self.setup_clean_chain: bool = False |