MCPcopy Create free account
hub / github.com/ElementsProject/elements / setUp

Method setUp

test/util/rpcauth-test.py:16–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14
15class TestRPCAuth(unittest.TestCase):
16 def setUp(self):
17 config = configparser.ConfigParser()
18 config_path = os.path.abspath(
19 os.path.join(os.sep, os.path.abspath(os.path.dirname(__file__)),
20 "../config.ini"))
21 with open(config_path, encoding="utf8") as config_file:
22 config.read_file(config_file)
23 sys.path.insert(0, os.path.dirname(config['environment']['RPCAUTH']))
24 self.rpcauth = importlib.import_module('rpcauth')
25
26 def test_generate_salt(self):
27 for i in range(16, 32 + 1):

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected