Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit99ee979

Browse files
fix: remove accidentally removed assertions
1 parented04584 commit99ee979

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎tests/unit/test_client.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,16 @@ def test_context_manager_closes_cursor(self):
204204
cursor.close=mock_close
205205
mock_close.assert_called_once_with()
206206

207+
cursor=client.Cursor(Mock(),Mock())
208+
cursor.close=Mock()
209+
210+
try:
211+
withself.assertRaises(KeyboardInterrupt):
212+
withcursor:
213+
raiseKeyboardInterrupt("Simulated interrupt")
214+
finally:
215+
cursor.close.assert_called()
216+
207217
defdict_product(self,dicts):
208218
"""
209219
Generate cartesion product of values in input dictionary, outputting a dictionary

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp