Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 711508f

Browse files
Switch to one-line docstrings for test cases.
1 parent f98d9b7 commit 711508f

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

influxdb/tests/client_test.py

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,7 @@ def test_get_list_privileges_fails(self):
10281028
cli.get_list_privileges('test')
10291029

10301030
def test_get_list_continuous_queries(self):
1031-
"""
1032-
Test getting a list of continuous queries by TestInfluxDBClient object.
1033-
"""
1031+
"""Test getting a list of continuous queries."""
10341032
data = {
10351033
"results": [
10361034
{
@@ -1079,17 +1077,12 @@ def test_get_list_continuous_queries(self):
10791077

10801078
@raises(Exception)
10811079
def test_get_list_continuous_queries_fails(self):
1082-
"""
1083-
Test failing to get a list of continuous queries by TestInfluxDBClient
1084-
object.
1085-
"""
1080+
"""Test failing to get a list of continuous queries."""
10861081
with _mocked_session(self.cli, 'get', 400):
10871082
self.cli.get_list_continuous_queries()
10881083

10891084
def test_create_continuous_query(self):
1090-
"""
1091-
Test continuous query creation with TestInfluxDBClient object.
1092-
"""
1085+
"""Test continuous query creation."""
10931086
data = {"results": [{}]}
10941087
with requests_mock.Mocker() as m:
10951088
m.register_uri(
@@ -1117,16 +1110,12 @@ def test_create_continuous_query(self):
11171110

11181111
@raises(Exception)
11191112
def test_create_continuous_query_fails(self):
1120-
"""
1121-
Test failing to create a continuous query by TestInfluxDBClient object.
1122-
"""
1113+
"""Test failing to create a continuous query."""
11231114
with _mocked_session(self.cli, 'get', 400):
11241115
self.cli.create_continuous_query('cq_name', 'select', 'db_name')
11251116

11261117
def test_drop_continuous_query(self):
1127-
"""
1128-
Test dropping a continuous query by TestInfluxDBClient object.
1129-
"""
1118+
"""Test dropping a continuous query."""
11301119
data = {"results": [{}]}
11311120
with requests_mock.Mocker() as m:
11321121
m.register_uri(
@@ -1142,9 +1131,7 @@ def test_drop_continuous_query(self):
11421131

11431132
@raises(Exception)
11441133
def test_drop_continuous_query_fails(self):
1145-
"""
1146-
Test failing to drop a continuous query by TestInfluxDBClient object.
1147-
"""
1134+
"""Test failing to drop a continuous query."""
11481135
with _mocked_session(self.cli, 'get', 400):
11491136
self.cli.drop_continuous_query('cq_name', 'db_name')
11501137

0 commit comments

Comments
 (0)