Skip to content

Commit f7cb773

Browse files
committed
Rename TestServer to avoid it being collected by pytest
1 parent d2d55a1 commit f7cb773

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_base_async.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ async def __call__(self, *args, **kwargs):
1515
return super().__call__(*args, **kwargs)
1616

1717

18-
class TestServer(base_async.BaseAsyncSubscriptionServer):
18+
class TstServer(base_async.BaseAsyncSubscriptionServer):
1919
def handle(self, *args, **kwargs):
20-
pass
20+
pass # pragma: no cover
2121

2222

2323
@pytest.fixture
2424
def server():
25-
return TestServer(schema=None)
25+
return TstServer(schema=None)
2626

2727

28-
async def test_terminate(server: TestServer):
28+
async def test_terminate(server: TstServer):
2929
context = AsyncMock()
3030
await server.on_connection_terminate(connection_context=context, op_id=1)
3131
context.close.assert_called_with(1011)
3232

3333

34-
async def test_send_error(server: TestServer):
34+
async def test_send_error(server: TstServer):
3535
context = AsyncMock()
3636
context.has_operation = mock.Mock()
3737
await server.send_error(connection_context=context, op_id=1, error="test error")

0 commit comments

Comments
 (0)