Skip to content

Commit aecb385

Browse files
committed
Fix more camel cases
1 parent a98a43d commit aecb385

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

test/asynchronous/test_database.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ async def test_validate_collection_background(self):
412412
async def test_command(self):
413413
self.maxDiff = None
414414
db = self.client.admin
415-
first = await db.command("buildinfo")
416-
second = await db.command({"buildinfo": 1})
417-
third = await db.command("buildinfo", 1)
415+
first = await db.command("buildInfo")
416+
second = await db.command({"buildInfo": 1})
417+
third = await db.command("buildInfo", 1)
418418
self.assertEqualReply(first, second)
419419
self.assertEqualReply(second, third)
420420

test/mockupdb/test_network_disconnect_primary.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ def test_network_disconnect_primary(self):
7070
self.assertEqual(TOPOLOGY_TYPE.ReplicaSetWithPrimary, topology.description.topology_type)
7171

7272
# Open a socket in the application pool (calls ismaster).
73-
with going(client.db.command, "buildinfo"):
74-
primary.receives("buildinfo").ok()
73+
with going(client.db.command, "buildInfo"):
74+
primary.receives("buildInfo").ok()
7575

7676
# The primary hangs replying to ismaster.
7777
ismaster_future = Future()
7878
primary.autoresponds("ismaster", lambda r: r.ok(ismaster_future.result()))
7979

8080
# Network error on application operation.
8181
with self.assertRaises(ConnectionFailure):
82-
with going(client.db.command, "buildinfo"):
83-
primary.receives("buildinfo").hangup()
82+
with going(client.db.command, "buildInfo"):
83+
primary.receives("buildInfo").hangup()
8484

8585
# Topology type is updated.
8686
self.assertEqual(TOPOLOGY_TYPE.ReplicaSetNoPrimary, topology.description.topology_type)
@@ -89,9 +89,9 @@ def test_network_disconnect_primary(self):
8989
ismaster_future.set_result(primary_response)
9090

9191
# Demand a primary.
92-
with going(client.db.command, "buildinfo"):
92+
with going(client.db.command, "buildInfo"):
9393
wait_until(lambda: client.primary == primary.address, "rediscover primary")
94-
primary.receives("buildinfo").ok()
94+
primary.receives("buildInfo").ok()
9595

9696
self.assertEqual(TOPOLOGY_TYPE.ReplicaSetWithPrimary, topology.description.topology_type)
9797

test/mockupdb/test_reset_and_request_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def _test_disconnect(self, operation):
8989
after = time.time()
9090

9191
# Demand a reconnect.
92-
with going(self.client.db.command, "buildinfo"):
93-
self.server.receives("buildinfo").ok()
92+
with going(self.client.db.command, "buildInfo"):
93+
self.server.receives("buildInfo").ok()
9494

9595
last = self.ismaster_time
9696
self.assertGreaterEqual(last, after, "called ismaster before needed")

test/test_database.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,9 @@ def test_validate_collection_background(self):
407407
def test_command(self):
408408
self.maxDiff = None
409409
db = self.client.admin
410-
first = db.command("buildinfo")
411-
second = db.command({"buildinfo": 1})
412-
third = db.command("buildinfo", 1)
410+
first = db.command("buildInfo")
411+
second = db.command({"buildInfo": 1})
412+
third = db.command("buildInfo", 1)
413413
self.assertEqualReply(first, second)
414414
self.assertEqualReply(second, third)
415415

0 commit comments

Comments
 (0)