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-
This commit is contained in:
Hennadii Stepanov committed 2024-07-16 22:06:47 +01:00
1 parent 45750f61d6
commit a0473442d1
247 files changed
+247 -247

No files matched your search

@@ -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