Skip to content

Commit a0481cc

Browse files
committed
Skip SSL tests entirely when running tests against a remote server.
1 parent 47e2444 commit a0481cc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_connect.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ async def test_connection_ssl_unix(self):
484484
ssl=ssl_context)
485485

486486

487+
@unittest.skipIf(os.environ.get('PGHOST'), 'unmanaged cluster')
487488
class TestSSLConnection(tb.ConnectedTestCase):
488489
@classmethod
489490
def get_server_settings(cls):
@@ -504,9 +505,6 @@ def setup_cluster(cls):
504505
def setUp(self):
505506
super().setUp()
506507

507-
if not self.cluster.is_managed():
508-
self.skipTest('unmanaged cluster')
509-
510508
self.cluster.reset_hba()
511509

512510
create_script = []

0 commit comments

Comments
 (0)