Skip to content

Commit 67c6738

Browse files
committed
fix tests pt 2?
1 parent a9c63c8 commit 67c6738

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/asynchronous/test_encryption.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,14 @@ def test_init_kms_tls_options(self):
189189
]:
190190
with self.assertRaisesRegex(ConfigurationError, "Insecure TLS options prohibited"):
191191
opts = AutoEncryptionOpts({}, "k.d", kms_tls_options=tls_opts)
192+
opts._parse_kms_tls_options(_IS_SYNC)
192193
with self.assertRaises(FileNotFoundError):
193-
AutoEncryptionOpts(
194+
opts = AutoEncryptionOpts(
194195
{},
195196
"k.d",
196197
kms_tls_options={"kmip": {"tlsCAFile": "does-not-exist"}},
197198
)
199+
opts._parse_kms_tls_options(_IS_SYNC)
198200
# Success cases:
199201
tls_opts: Any
200202
for tls_opts in [None, {}]:

test/test_encryption.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,14 @@ def test_init_kms_tls_options(self):
189189
]:
190190
with self.assertRaisesRegex(ConfigurationError, "Insecure TLS options prohibited"):
191191
opts = AutoEncryptionOpts({}, "k.d", kms_tls_options=tls_opts)
192+
opts._parse_kms_tls_options(_IS_SYNC)
192193
with self.assertRaises(FileNotFoundError):
193-
AutoEncryptionOpts(
194+
opts = AutoEncryptionOpts(
194195
{},
195196
"k.d",
196197
kms_tls_options={"kmip": {"tlsCAFile": "does-not-exist"}},
197198
)
199+
opts._parse_kms_tls_options(_IS_SYNC)
198200
# Success cases:
199201
tls_opts: Any
200202
for tls_opts in [None, {}]:

0 commit comments

Comments
 (0)