Skip to content

Commit 979a5bf

Browse files
committed
change listener for tests
1 parent 89dcfac commit 979a5bf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/asynchronous/test_comment.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
sys.path[0:0] = [""]
2323
from asyncio import iscoroutinefunction
2424
from test.asynchronous import AsyncIntegrationTest, async_client_context, unittest
25-
from test.utils import EventListener
25+
from test.utils import OvertCommandListener
2626

2727
from bson.dbref import DBRef
2828
from pymongo.asynchronous.command_cursor import AsyncCommandCursor
@@ -84,7 +84,7 @@ async def _test_ops(
8484
@async_client_context.require_version_min(4, 7, -1)
8585
@async_client_context.require_replica_set
8686
async def test_database_helpers(self):
87-
listener = EventListener()
87+
listener = OvertCommandListener()
8888
db = (await self.async_rs_or_single_client(event_listeners=[listener])).db
8989
helpers = [
9090
(db.watch, []),
@@ -101,7 +101,7 @@ async def test_database_helpers(self):
101101
@async_client_context.require_version_min(4, 7, -1)
102102
@async_client_context.require_replica_set
103103
async def test_client_helpers(self):
104-
listener = EventListener()
104+
listener = OvertCommandListener()
105105
cli = await self.async_rs_or_single_client(event_listeners=[listener])
106106
helpers = [
107107
(cli.watch, []),
@@ -116,7 +116,7 @@ async def test_client_helpers(self):
116116

117117
@async_client_context.require_version_min(4, 7, -1)
118118
async def test_collection_helpers(self):
119-
listener = EventListener()
119+
listener = OvertCommandListener()
120120
db = (await self.async_rs_or_single_client(event_listeners=[listener]))[self.db.name]
121121
coll = db.get_collection("test")
122122

test/test_comment.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
sys.path[0:0] = [""]
2323
from asyncio import iscoroutinefunction
2424
from test import IntegrationTest, client_context, unittest
25-
from test.utils import EventListener
25+
from test.utils import OvertCommandListener
2626

2727
from bson.dbref import DBRef
2828
from pymongo.operations import IndexModel
@@ -84,7 +84,7 @@ def _test_ops(
8484
@client_context.require_version_min(4, 7, -1)
8585
@client_context.require_replica_set
8686
def test_database_helpers(self):
87-
listener = EventListener()
87+
listener = OvertCommandListener()
8888
db = (self.rs_or_single_client(event_listeners=[listener])).db
8989
helpers = [
9090
(db.watch, []),
@@ -101,7 +101,7 @@ def test_database_helpers(self):
101101
@client_context.require_version_min(4, 7, -1)
102102
@client_context.require_replica_set
103103
def test_client_helpers(self):
104-
listener = EventListener()
104+
listener = OvertCommandListener()
105105
cli = self.rs_or_single_client(event_listeners=[listener])
106106
helpers = [
107107
(cli.watch, []),
@@ -116,7 +116,7 @@ def test_client_helpers(self):
116116

117117
@client_context.require_version_min(4, 7, -1)
118118
def test_collection_helpers(self):
119-
listener = EventListener()
119+
listener = OvertCommandListener()
120120
db = (self.rs_or_single_client(event_listeners=[listener]))[self.db.name]
121121
coll = db.get_collection("test")
122122

0 commit comments

Comments
 (0)