MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / tearDown

Method tearDown

tests/test_connect.py:2069–2079  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2067 self.loop.run_until_complete(self.con.execute(create_script))
2068
2069 def tearDown(self):
2070 # Reset cluster's pg_hba.conf since we've meddled with it
2071 self.cluster.trust_local_connections()
2072
2073 drop_script = []
2074 drop_script.append('REVOKE ALL ON SCHEMA public FROM ssl_user;')
2075 drop_script.append('DROP ROLE ssl_user;')
2076 drop_script = '\n'.join(drop_script)
2077 self.loop.run_until_complete(self.con.execute(drop_script))
2078
2079 super().tearDown()
2080
2081 def _add_hba_entry(self):
2082 raise NotImplementedError()

Callers 1

tearDownMethod · 0.45

Calls 2

executeMethod · 0.45

Tested by

no test coverage detected