Skip to content

Commit 60a6d6b

Browse files
author
aviau
committed
Added test_delete_database_user
1 parent 704d104 commit 60a6d6b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/influxdb/client_test.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,16 @@ def test_update_database_user_password(self):
405405
)
406406

407407
def test_delete_database_user(self):
408-
pass
408+
with requests_mock.Mocker() as m:
409+
m.register_uri(
410+
requests_mock.DELETE,
411+
"http://localhost:8086/db/db/users/paul"
412+
)
413+
414+
cli = InfluxDBClient(database='db')
415+
cli.delete_database_user(username='paul')
416+
417+
self.assertIsNone(m.last_request.body)
409418

410419
@raises(NotImplementedError)
411420
def test_update_permission(self):

0 commit comments

Comments
 (0)