Skip to content

Commit 348f120

Browse files
re-add check after review
1 parent 6693834 commit 348f120

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/integ/test_connection.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,12 @@ def test_ocsp_mode_disable_ocsp_checks(conn_cnx, caplog):
13911391
with conn_cnx(disable_ocsp_checks=True) as conn, conn.cursor() as cur:
13921392
assert cur.execute("select 1").fetchall() == [(1,)]
13931393
assert "snowflake.connector.ocsp_snowflake:" not in caplog.text
1394+
assert "This connection does not perform OCSP checks." in caplog.text
1395+
caplog.clear()
1396+
with conn_cnx() as conn, conn.cursor() as cur:
1397+
assert cur.execute("select 1").fetchall() == [(1,)]
1398+
assert "snowflake.connector.ocsp_snowflake" in caplog.text
1399+
assert "This connection does not perform OCSP checks." not in caplog.text
13941400

13951401

13961402
@pytest.mark.skipolddriver

0 commit comments

Comments
 (0)