MCPcopy Create free account
hub / github.com/ElementsProject/lightning / get_dsn

Function get_dsn

tests/test_db.py:354–358  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

352
353 # Override get_dsn method to use the key-value style DSN
354 def get_dsn(self):
355 print("hello")
356 return "postgres://host=127.0.0.1 port={port} user=postgres password=password dbname={dbname}".format(
357 port=self.port, dbname=self.dbname
358 )
359
360 monkeypatch.setattr(PostgresDb, "get_dsn", get_dsn)
361 l1 = node_factory.get_node()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected