Skip to content

Commit 37be5b2

Browse files
Grégory Starckaviau
authored andcommitted
ré-adapté pour get_list_database()
1 parent 1a4b4eb commit 37be5b2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/influxdb/client_test_with_server.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,10 @@ def test_fresh_server_no_db(self):
287287
def test_create_database(self):
288288
self.assertIsNone(self.cli.create_database('new_db_1'))
289289
self.assertIsNone(self.cli.create_database('new_db_2'))
290+
rsp = self.cli.get_list_database()
290291
self.assertEqual(
291-
self.cli.get_list_database(),
292-
[{u'name': u'new_db_1'}, {u'name': u'new_db_2'}]
292+
rsp,
293+
['new_db_1', 'new_db_2']
293294
)
294295

295296
def test_create_database_fails(self):
@@ -303,7 +304,7 @@ def test_create_database_fails(self):
303304
def test_drop_database(self):
304305
self.test_create_database()
305306
self.assertIsNone(self.cli.drop_database('new_db_1'))
306-
self.assertEqual([{u'name': u'new_db_2'}], self.cli.get_list_database())
307+
self.assertEqual(['new_db_2'], self.cli.get_list_database())
307308

308309
def test_drop_database_fails(self):
309310
with self.assertRaises(InfluxDBClientError) as ctx:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy