10000 Merge pull request #337 from babilen/fix-empty-username-test · dbrgn/influxdb-python@1bd84e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1bd84e6

Browse files
authored
Merge pull request influxdata#337 from babilen/fix-empty-username-test
Fix test_create_user_blank_username
2 parents dbc2007 + 60e4054 commit 1bd84e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

influxdb/tests/server_tests/client_test_with_server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,7 @@ def test_get_list_users(self):
183183
def test_create_user_blank_username(self):
184184
with self.assertRaises(InfluxDBClientError) as ctx:
185185
self.cli.create_user('', 'secret_password')
186-
self.assertEqual(400, ctx.exception.code)
187-
self.assertIn('{"error":"error parsing query: '
188-
'found WITH, expected identifier',
186+
self.assertIn('username required',
189187
ctx.exception.content)
190188
rsp = list(self.cli.query("SHOW USERS")['results'])
191189
self.assertEqual(rsp, [])

0 commit comments

Comments
 (0)
0