instance_id
stringclasses
28 values
test_id
stringlengths
30
622
affected
bool
2 classes
text
stringlengths
301
41.6M
license
stringclasses
5 values
aio-libs__aiohttp-9047
tests/test_base_protocol.py::test_pause_writing
false
async def test_pause_writing() -> None: loop = asyncio.get_event_loop() pr = BaseProtocol(loop) assert not pr._paused pr.pause_writing() assert pr._paused # --- trace --- # === tests/test_base_protocol.py::test_pause_writing (line 17) === async def test_pause_writing() -> None: loop = asyncio.g...
custom-check-github
aio-libs__aiohttp-9047
tests/test_base_protocol.py::test_resume_drain_cancelled
false
async def test_resume_drain_cancelled() -> None: loop = asyncio.get_event_loop() pr = BaseProtocol(loop=loop) tr = mock.Mock() pr.connection_made(tr) pr.pause_writing() fut = loop.create_future() async def wait(): fut.set_result(None) await pr._drain_helper() t = loop....
custom-check-github
aio-libs__aiohttp-9047
tests/test_base_protocol.py::test_resume_drain_waited
false
async def test_resume_drain_waited() -> None: loop = asyncio.get_event_loop() pr = BaseProtocol(loop=loop) tr = mock.Mock() pr.connection_made(tr) pr.pause_writing() t = loop.create_task(pr._drain_helper()) await asyncio.sleep(0) assert pr._drain_waiter is not None pr.resume_writin...
custom-check-github
aio-libs__aiohttp-9047
tests/test_base_protocol.py::test_resume_reading_no_transport
false
async def test_resume_reading_no_transport() -> None: loop = asyncio.get_event_loop() pr = BaseProtocol(loop) pr._reading_paused = True pr.resume_reading() assert pr._reading_paused # --- trace --- # === tests/test_base_protocol.py::test_resume_reading_no_transport (line 43) === async def test_resu...
custom-check-github
aio-libs__aiohttp-9047
tests/test_base_protocol.py::test_resume_reading_stub_transport
false
async def test_resume_reading_stub_transport() -> None: loop = asyncio.get_event_loop() pr = BaseProtocol(loop) tr = asyncio.Transport() pr.transport = tr pr._reading_paused = True pr.resume_reading() assert not pr._reading_paused # --- trace --- # === tests/test_base_protocol.py::test_resu...
custom-check-github
aio-libs__aiohttp-9047
tests/test_base_protocol.py::test_resume_writing_no_waiters
false
async def test_resume_writing_no_waiters() -> None: loop = asyncio.get_event_loop() pr = BaseProtocol(loop=loop) pr.pause_writing() assert pr._paused pr.resume_writing() assert not pr._paused # --- trace --- # === tests/test_base_protocol.py::test_resume_writing_no_waiters (line 61) === async d...
custom-check-github
aio-libs__aiohttp-9047
tests/test_base_protocol.py::test_resume_writing_waiter_done
false
async def test_resume_writing_waiter_done() -> None: loop = asyncio.get_event_loop() pr = BaseProtocol(loop=loop) waiter = mock.Mock(done=mock.Mock(return_value=True)) pr._drain_waiter = waiter pr._paused = True pr.resume_writing() assert not pr._paused assert waiter.mock_calls == [mock....
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.abc]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.base_protocol]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.client]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.client_exceptions]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.client_proto]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.client_reqrep]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.client_ws]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.compression_utils]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.connector]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.cookiejar]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.formdata]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.hdrs]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.helpers]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.http]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.http_exceptions]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.http_parser]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.http_websocket]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.http_writer]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.locks]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.log]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.multipart]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.payload]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.payload_streamer]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.pytest_plugin]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.resolver]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.streams]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.tcp_helpers]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.test_utils]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.tracing]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.typedefs]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_app]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_exceptions]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_fileresponse]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_log]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_middlewares]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_protocol]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_request]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_response]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_routedef]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_runner]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_server]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_urldispatcher]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.web_ws]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_circular_imports.py::test_no_warnings[aiohttp.worker]
false
@pytest.mark.parametrize( "import_path", _mark_aiohttp_worker_for_skipping(_find_all_importables(aiohttp)), ) def test_no_warnings(import_path: str) -> None: """Verify that exploding importables doesn't explode. This is seeking for any import errors including ones caused by circular imports. ""...
custom-check-github
aio-libs__aiohttp-9047
tests/test_classbasedview.py::test_ctor
false
def test_ctor() -> None: request = mock.Mock() view = View(request) assert view.request is request # --- trace --- # === tests/test_classbasedview.py::test_ctor (line 9) === def test_ctor() -> None: request = mock.Mock() # request=<Mock id='140737296422544'> view = View(request) # === aiohttp/abc...
custom-check-github
aio-libs__aiohttp-9047
tests/test_classbasedview.py::test_render_ok
false
async def test_render_ok() -> None: resp = web.Response(text="OK") class MyView(View): async def get(self): return resp request = mock.Mock() request.method = "GET" resp2 = await MyView(request) assert resp is resp2 # --- trace --- # === tests/test_classbasedview.py::test_...
custom-check-github
aio-libs__aiohttp-9047
tests/test_classbasedview.py::test_render_unknown_method
false
async def test_render_unknown_method() -> None: class MyView(View): async def get(self): return web.Response(text="OK") options = get request = mock.Mock() request.method = "UNKNOWN" with pytest.raises(web.HTTPMethodNotAllowed) as ctx: await MyView(request) asse...
custom-check-github
aio-libs__aiohttp-9047
tests/test_classbasedview.py::test_render_unsupported_method
false
async def test_render_unsupported_method() -> None: class MyView(View): async def get(self): return web.Response(text="OK") options = delete = get request = mock.Mock() request.method = "POST" with pytest.raises(web.HTTPMethodNotAllowed) as ctx: await MyView(request...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_connection.py::test_callbacks_exception
false
def test_callbacks_exception(connector, key, protocol, loop) -> None: conn = Connection(connector, key, protocol, loop) notified = False def cb1(): raise Exception def cb2(): nonlocal notified notified = True conn.add_callback(cb1) conn.add_callback(cb2) conn.close...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_connection.py::test_callbacks_on_close
false
def test_callbacks_on_close(connector, key, protocol, loop) -> None: conn = Connection(connector, key, protocol, loop) notified = False def cb(): nonlocal notified notified = True conn.add_callback(cb) conn.close() assert notified # --- trace --- # === tests/test_client_connec...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_connection.py::test_callbacks_on_release
false
def test_callbacks_on_release(connector, key, protocol, loop) -> None: conn = Connection(connector, key, protocol, loop) notified = False def cb(): nonlocal notified notified = True conn.add_callback(cb) conn.release() assert notified # --- trace --- # === tests/test_client_co...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_connection.py::test_close
false
def test_close(connector, key, protocol, loop) -> None: conn = Connection(connector, key, protocol, loop) assert not conn.closed conn.close() assert conn._protocol is None connector._release.assert_called_with(key, protocol, should_close=True) assert conn.closed # --- trace --- # === tests/test...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_connection.py::test_ctor
false
def test_ctor(connector, key, protocol, loop) -> None: conn = Connection(connector, key, protocol, loop) with pytest.warns(DeprecationWarning): assert conn.loop is loop assert conn.protocol is protocol conn.close() # --- trace --- # === tests/test_client_connection.py::test_ctor (line 29) === d...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_connection.py::test_del
false
def test_del(connector, key, protocol, loop) -> None: loop.is_closed.return_value = False conn = Connection(connector, key, protocol, loop) exc_handler = mock.Mock() loop.set_exception_handler(exc_handler) with pytest.warns(ResourceWarning): del conn gc.collect() connector._rel...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_connection.py::test_release
false
def test_release(connector, key, protocol, loop) -> None: conn = Connection(connector, key, protocol, loop) assert not conn.closed conn.release() assert not protocol.transport.close.called assert conn._protocol is None connector._release.assert_called_with(key, protocol, should_close=False) ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_connection.py::test_release_proto_should_close
false
def test_release_proto_should_close(connector, key, protocol, loop) -> None: protocol.should_close = True conn = Connection(connector, key, protocol, loop) assert not conn.closed conn.release() assert not protocol.transport.close.called assert conn._protocol is None connector._release.assert...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_connection.py::test_release_released
false
def test_release_released(connector, key, protocol, loop) -> None: conn = Connection(connector, key, protocol, loop) conn.release() connector._release.reset_mock() conn.release() assert not protocol.transport.close.called assert conn._protocol is None assert not connector._release.called # ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientConnectorCertificateError::test_ctor
false
def test_ctor(self) -> None: certificate_error = Exception("Bad certificate") err = client.ClientConnectorCertificateError( connection_key=self.connection_key, certificate_error=certificate_error ) assert err.certificate_error == certificate_error assert err.host ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientConnectorCertificateError::test_pickle
false
def test_pickle(self) -> None: certificate_error = Exception("Bad certificate") err = client.ClientConnectorCertificateError( connection_key=self.connection_key, certificate_error=certificate_error ) err.foo = "bar" for proto in range(pickle.HIGHEST_PROTOCOL + 1):...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientConnectorCertificateError::test_repr
false
def test_repr(self) -> None: certificate_error = Exception("Bad certificate") err = client.ClientConnectorCertificateError( connection_key=self.connection_key, certificate_error=certificate_error ) assert repr(err) == ( "ClientConnectorCertificateError(%r, %r)...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientConnectorCertificateError::test_str
false
def test_str(self) -> None: certificate_error = Exception("Bad certificate") err = client.ClientConnectorCertificateError( connection_key=self.connection_key, certificate_error=certificate_error ) assert str(err) == ( "Cannot connect to host example.com:8080 s...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientConnectorError::test_ctor
false
def test_ctor(self) -> None: err = client.ClientConnectorError( connection_key=self.connection_key, os_error=OSError(errno.ENOENT, "No such file"), ) assert err.errno == errno.ENOENT assert err.strerror == "No such file" assert err.os_error.errno == er...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientConnectorError::test_pickle
false
def test_pickle(self) -> None: err = client.ClientConnectorError( connection_key=self.connection_key, os_error=OSError(errno.ENOENT, "No such file"), ) err.foo = "bar" for proto in range(pickle.HIGHEST_PROTOCOL + 1): pickled = pickle.dumps(err, pro...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientConnectorError::test_repr
false
def test_repr(self) -> None: os_error = OSError(errno.ENOENT, "No such file") err = client.ClientConnectorError( connection_key=self.connection_key, os_error=os_error ) assert repr(err) == ( f"ClientConnectorError({self.connection_key!r}, {os_error!r})" ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientConnectorError::test_str
false
def test_str(self) -> None: err = client.ClientConnectorError( connection_key=self.connection_key, os_error=OSError(errno.ENOENT, "No such file"), ) assert str(err) == ( "Cannot connect to host example.com:8080 ssl:default [No such file]" ) # --- ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientResponseError::test_default_status
false
def test_default_status(self) -> None: err = client.ClientResponseError(history=(), request_info=self.request_info) assert err.status == 0 # --- trace --- # === tests/test_client_exceptions.py::TestClientResponseError.test_default_status (line 22) === def test_default_status(self) -> None: ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientResponseError::test_pickle
false
def test_pickle(self) -> None: err = client.ClientResponseError(request_info=self.request_info, history=()) for proto in range(pickle.HIGHEST_PROTOCOL + 1): pickled = pickle.dumps(err, proto) err2 = pickle.loads(pickled) assert err2.request_info == self.request_in...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientResponseError::test_repr
false
def test_repr(self) -> None: err = client.ClientResponseError(request_info=self.request_info, history=()) assert repr(err) == (f"ClientResponseError({self.request_info!r}, ())") err = client.ClientResponseError( request_info=self.request_info, history=(), ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientResponseError::test_status
false
def test_status(self) -> None: err = client.ClientResponseError( status=400, history=(), request_info=self.request_info ) assert err.status == 400 # --- trace --- # === tests/test_client_exceptions.py::TestClientResponseError.test_status (line 26) === def test_status(self) -...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestClientResponseError::test_str
false
def test_str(self) -> None: err = client.ClientResponseError( request_info=self.request_info, history=(), status=400, message="Something wrong", headers=CIMultiDict(), ) assert str(err) == ("400, message='Something wrong', url='http...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestInvalidURL::test_ctor
false
def test_ctor(self) -> None: err = client.InvalidURL(url=":wrong:url:", description=":description:") assert err.url == ":wrong:url:" assert err.description == ":description:" # --- trace --- # === tests/test_client_exceptions.py::TestInvalidURL.test_ctor (line 301) === def test_ctor(sel...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestInvalidURL::test_none_description
false
def test_none_description(self) -> None: err = client.InvalidURL(":wrong:url:") assert err.description is None # --- trace --- # === tests/test_client_exceptions.py::TestInvalidURL.test_none_description (line 332) === def test_none_description(self) -> None: # ENTER: self=TestInvalidURL...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestInvalidURL::test_pickle
false
def test_pickle(self) -> None: err = client.InvalidURL(url=":wrong:url:") err.foo = "bar" for proto in range(pickle.HIGHEST_PROTOCOL + 1): pickled = pickle.dumps(err, proto) err2 = pickle.loads(pickled) assert err2.url == ":wrong:url:" assert e...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestInvalidURL::test_repr_no_description
false
def test_repr_no_description(self) -> None: err = client.InvalidURL(url=":wrong:url:") assert err.args == (":wrong:url:",) assert repr(err) == "<InvalidURL :wrong:url:>" # --- trace --- # === tests/test_client_exceptions.py::TestInvalidURL.test_repr_no_description (line 315) === def tes...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestInvalidURL::test_repr_with_description
false
def test_repr_with_description(self) -> None: err = client.InvalidURL(url=":wrong:url:", description=":description:") assert repr(err) == "<InvalidURL :wrong:url: - :description:>" # --- trace --- # === tests/test_client_exceptions.py::TestInvalidURL.test_repr_with_description (line 324) === de...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestInvalidURL::test_repr_yarl_URL
false
def test_repr_yarl_URL(self) -> None: err = client.InvalidURL(url=URL(":wrong:url:")) assert repr(err) == "<InvalidURL :wrong:url:>" # --- trace --- # === tests/test_client_exceptions.py::TestInvalidURL.test_repr_yarl_URL (line 320) === def test_repr_yarl_URL(self) -> None: # ENTER: sel...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestInvalidURL::test_str_no_description
false
def test_str_no_description(self) -> None: err = client.InvalidURL(url=":wrong:url:") assert str(err) == ":wrong:url:" # --- trace --- # === tests/test_client_exceptions.py::TestInvalidURL.test_str_no_description (line 328) === def test_str_no_description(self) -> None: # ENTER: self=Te...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestInvalidURL::test_str_with_description
false
def test_str_with_description(self) -> None: err = client.InvalidURL(url=":wrong:url:", description=":description:") assert str(err) == ":wrong:url: - :description:" # --- trace --- # === tests/test_client_exceptions.py::TestInvalidURL.test_str_with_description (line 336) === def test_str_with_...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestServerDisconnectedError::test_ctor
false
def test_ctor(self) -> None: err = client.ServerDisconnectedError() assert err.message == "Server disconnected" err = client.ServerDisconnectedError(message="No connection") assert err.message == "No connection" # --- trace --- # === tests/test_client_exceptions.py::TestServerDisco...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestServerDisconnectedError::test_pickle
false
def test_pickle(self) -> None: err = client.ServerDisconnectedError(message="No connection") err.foo = "bar" for proto in range(pickle.HIGHEST_PROTOCOL + 1): pickled = pickle.dumps(err, proto) err2 = pickle.loads(pickled) assert err2.message == "No connect...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestServerDisconnectedError::test_repr
false
def test_repr(self) -> None: err = client.ServerDisconnectedError() assert repr(err) == ("ServerDisconnectedError('Server disconnected')") err = client.ServerDisconnectedError(message="No connection") assert repr(err) == "ServerDisconnectedError('No connection')" # --- trace --- # ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestServerDisconnectedError::test_str
false
def test_str(self) -> None: err = client.ServerDisconnectedError() assert str(err) == "Server disconnected" err = client.ServerDisconnectedError(message="No connection") assert str(err) == "No connection" # --- trace --- # === tests/test_client_exceptions.py::TestServerDisconnected...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestServerFingerprintMismatch::test_ctor
false
def test_ctor(self) -> None: err = client.ServerFingerprintMismatch( expected=b"exp", got=b"got", host="example.com", port=8080 ) assert err.expected == b"exp" assert err.got == b"got" assert err.host == "example.com" assert err.port == 8080 # --- trace -...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestServerFingerprintMismatch::test_pickle
false
def test_pickle(self) -> None: err = client.ServerFingerprintMismatch( expected=b"exp", got=b"got", host="example.com", port=8080 ) err.foo = "bar" for proto in range(pickle.HIGHEST_PROTOCOL + 1): pickled = pickle.dumps(err, proto) err2 = pickle.lo...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::TestServerFingerprintMismatch::test_repr
false
def test_repr(self) -> None: err = client.ServerFingerprintMismatch(b"exp", b"got", "example.com", 8080) assert repr(err) == ( "<ServerFingerprintMismatch expected=b'exp' " "got=b'got' host='example.com' port=8080>" ) # --- trace --- # === tests/test_client_exception...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::test_response_both_code_and_status
false
def test_response_both_code_and_status() -> None: with pytest.raises(ValueError): client.ClientResponseError( code=400, status=400, history=None, request_info=None ) # --- trace --- # === tests/test_client_exceptions.py::test_response_both_code_and_status (line 111) === def test_respons...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::test_response_deprecated_code_property
false
def test_response_deprecated_code_property() -> None: request_info = mock.Mock(real_url="http://example.com") with pytest.warns(DeprecationWarning): err = client.ClientResponseError( code=400, history=None, request_info=request_info ) with pytest.warns(DeprecationWarning): ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_exceptions.py::test_response_status
false
def test_response_status() -> None: request_info = mock.Mock(real_url="http://example.com") err = client.ClientResponseError( status=400, history=None, request_info=request_info ) assert err.status == 400 # --- trace --- # === tests/test_client_exceptions.py::test_response_status (line 89) === ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_fingerprint.py::test__merge_ssl_params_fingerprint
false
def test__merge_ssl_params_fingerprint() -> None: digest = hashlib.sha256(b"123").digest() with pytest.warns(DeprecationWarning): ret = _merge_ssl_params(True, None, None, digest) assert ret.fingerprint == digest # --- trace --- # === tests/test_client_fingerprint.py::test__merge_ssl_params_fin...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_fingerprint.py::test__merge_ssl_params_fingerprint_conflict
false
def test__merge_ssl_params_fingerprint_conflict() -> None: fingerprint = aiohttp.Fingerprint(hashlib.sha256(b"123").digest()) ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) with pytest.warns(DeprecationWarning): with pytest.raises(ValueError): _merge_ssl_params(ctx, None, None, fingerprin...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_fingerprint.py::test__merge_ssl_params_invlid
false
def test__merge_ssl_params_invlid() -> None: with pytest.raises(TypeError): _merge_ssl_params(object(), None, None, None) # --- trace --- # === tests/test_client_fingerprint.py::test__merge_ssl_params_invlid (line 84) === def test__merge_ssl_params_invlid() -> None: with pytest.raises(TypeError): ...
custom-check-github
aio-libs__aiohttp-9047
tests/test_client_fingerprint.py::test__merge_ssl_params_ssl
false
def test__merge_ssl_params_ssl() -> None: ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) assert ctx is _merge_ssl_params(ctx, None, None, None) # --- trace --- # === tests/test_client_fingerprint.py::test__merge_ssl_params_ssl (line 79) === def test__merge_ssl_params_ssl() -> None: ctx = ssl.SSLContext(ssl....
custom-check-github