MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / tearDown

Method tearDown

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

Source from the content-addressed store, hash-verified

1833 self.loop.run_until_complete(self.con.execute(create_script))
1834
1835 def tearDown(self):
1836 # Reset cluster's pg_hba.conf since we've meddled with it
1837 self.cluster.trust_local_connections()
1838
1839 drop_script = []
1840 drop_script.append('REVOKE ALL ON SCHEMA public FROM ssl_user;')
1841 drop_script.append('DROP ROLE ssl_user;')
1842 drop_script = '\n'.join(drop_script)
1843 self.loop.run_until_complete(self.con.execute(drop_script))
1844
1845 super().tearDown()
1846
1847 def _add_hba_entry(self):
1848 raise NotImplementedError()

Callers 1

tearDownMethod · 0.45

Calls 2

executeMethod · 0.45

Tested by

no test coverage detected