Skip to content

Commit 07e5469

Browse files
committed
TST: verify close
1 parent 105d643 commit 07e5469

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

qiita_db/test/test_sql_connection.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ def test_create_queue(self):
1111
self.conn_handler.create_queue("toy_queue")
1212
self.assertEqual(self.conn_handler.list_queues(), ["toy_queue"])
1313

14+
def test_close(self):
15+
self.assertEqual(self.conn_handler._user_conn.closed, 0)
16+
self.conn_handler.close()
17+
self.assertNotEqual(self.conn_handler._user_conn.closed, 0)
18+
1419
def test_run_queue(self):
1520
self.conn_handler.create_queue("toy_queue")
1621
self.conn_handler.add_to_queue(

0 commit comments

Comments
 (0)