Ejemplo n.º 1
0
 def test_replication_slots(self, connection):
     pg_base = Base(connection.engine.url.database)
     assert pg_base.replication_slots("noob") == []
     replication_slots = pg_base.replication_slots(
         f"{connection.engine.url.database}_testdb"
     )
     assert "testdb_testdb" == replication_slots[0][0]
Ejemplo n.º 2
0
 def test_replication_slots(self, connection):
     pg_base = Base(connection.engine.url.database)
     assert pg_base.replication_slots('noob') == []
     replication_slots = pg_base.replication_slots(
         f'{connection.engine.url.database}_testdb'
     )
     assert 'testdb_testdb' == replication_slots[0][0]