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

Commit c9c7fa0

Browse files
committed
Rename all mixedCase globals to snake case to appease N816
Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
1 parent 1cce011 commit c9c7fa0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

influxdb/tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
_skip_server_tests = os.environ.get(
1818
'INFLUXDB_PYTHON_SKIP_SERVER_TESTS',
1919
None) == 'True'
20-
skipServerTests = unittest.skipIf(_skip_server_tests,
21-
"Skipping server tests...")
20+
skip_server_tests = unittest.skipIf(_skip_server_tests,
21+
"Skipping server tests...")

influxdb/tests/server_tests/client_test_with_server.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def point(series_name, timestamp=None, tags=None, **fields):
8282
]
8383

8484
if not using_pypy:
85-
dummy_pointDF = {
85+
dummy_point_df = {
8686
"measurement": "cpu_load_short",
8787
"tags": {"host": "server01",
8888
"region": "us-west"},
@@ -299,9 +299,9 @@ def test_write_points_DF(self):
299299
self.assertIs(
300300
True,
301301
self.cliDF.write_points(
302-
dummy_pointDF['dataframe'],
303-
dummy_pointDF['measurement'],
304-
dummy_pointDF['tags']
302+
dummy_point_df['dataframe'],
303+
dummy_point_df['measurement'],
304+
dummy_point_df['tags']
305305
)
306306
)
307307

@@ -342,7 +342,7 @@ def test_write_points_check_read_DF(self):
342342
rsp = self.cliDF.query('SELECT * FROM cpu_load_short')
343343
assert_frame_equal(
344344
rsp['cpu_load_short'],
345-
dummy_pointDF['dataframe']
345+
dummy_point_df['dataframe']
346346
)
347347

348348
# Query with Tags
@@ -351,7 +351,7 @@ def test_write_points_check_read_DF(self):
351351
assert_frame_equal(
352352
rsp[('cpu_load_short',
353353
(('host', 'server01'), ('region', 'us-west')))],
354-
dummy_pointDF['dataframe']
354+
dummy_point_df['dataframe']
355355
)
356356

357357
def test_write_multiple_points_different_series(self):

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