We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 704d104 commit 60a6d6bCopy full SHA for 60a6d6b
tests/influxdb/client_test.py
@@ -405,7 +405,16 @@ def test_update_database_user_password(self):
405
)
406
407
def test_delete_database_user(self):
408
- pass
+ 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)
418
419
@raises(NotImplementedError)
420
def test_update_permission(self):
0 commit comments