repo_id string | cross_repo_split string | commit_index int32 | commit_sha string | in_repo_split string | test_file string | file_split string | split_group string | lineno int32 | col_offset int32 | assertion_type string | test_function string | prefix large_string | target string | assertion_event_type string | assertion_event_id string | assertion_anchor large_string | old_target string | old_lineno int32 | old_col_offset int32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
urllib3/urllib3 | train | 594 | b09fe5629dd3c3e3253b54d384878b2fee00f64a | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 1,126 | 17 | pytest.raises | test_disabled_retry | from __future__ import annotations
import io
import socket
import time
import typing
import warnings
from test import LONG_TIMEOUT, SHORT_TIMEOUT
from threading import Event
from unittest import mock
from urllib.parse import urlencode
import pytest
from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning
from ... | NameResolutionError) | added | bd1a94349cdd97ee3e6f0d66453ccebaf17b06382fb8c464fe33d3b369384082 | pytest.raises|test_disabled_retry|from __future__ import annotations import io import socket import time import typing import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import HAS_IP... | null | null | null |
urllib3/urllib3 | train | 594 | b09fe5629dd3c3e3253b54d384878b2fee00f64a | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 193 | 17 | pytest.raises | test_client_no_intermediate | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | (SSLError, ProtocolError)) | added | a4a911a63371d250c21c3c9e30f0439df3ae10d50e6ea5001aff4666aca76809 | pytest.raises|test_client_no_intermediate|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context... | null | null | null |
urllib3/urllib3 | train | 594 | b09fe5629dd3c3e3253b54d384878b2fee00f64a | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 221 | 17 | pytest.raises | test_client_encrypted_key_requires_password | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | MaxRetryError, match="password is required") | added | 163961bd269851e5f235ab336246f0e5db0db1eb414c011381fe02696877f734 | pytest.raises|test_client_encrypted_key_requires_password|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requ... | null | null | null |
urllib3/urllib3 | train | 594 | b09fe5629dd3c3e3253b54d384878b2fee00f64a | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 396 | 16 | assert | test_unverified_ssl | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | [x[0][1] for x in calls] | modified | 58254977a27920b5de47ff917beed39d028ca9b630fa1dbcdc3535bfd5e40882 | assert|test_unverified_ssl|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_passwo... | warn.called | 396 | 16 |
urllib3/urllib3 | train | 594 | b09fe5629dd3c3e3253b54d384878b2fee00f64a | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 764 | 8 | assert | test_set_cert_default_cert_required | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | len(w) == 1 and str(w[0].message) == ( "HTTPSConnection.set_cert() is deprecated and will be removed in urllib3 v2.1.0. " "Instead provide the parameters to the HTTPSConnection constructor." ) | added | f14fdc036f1b0f24bc1f0ca1f2c9e60ad114ccad01abb5766897bcd8096ff9a1 | assert|test_set_cert_default_cert_required|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_contex... | null | null | null |
urllib3/urllib3 | train | 595 | b984f4fbfe877d3bbd92826b0968cf8a89337872 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 771 | 8 | assert | test_is_fp_closed_object_has_fp | from __future__ import annotations
import io
import logging
import socket
import ssl
import sys
import typing
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd
from unittest import mock
from unittest.mock import MagicMock, Mock, patch
from... | not is_fp_closed(FpFile()) | added | 50630e5059c00971b21babbbc19fcbdf756206d45228f7587a7e2dd4bad6c02f | assert|test_is_fp_closed_object_has_fp|from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.m... | null | null | null |
urllib3/urllib3 | train | 595 | b984f4fbfe877d3bbd92826b0968cf8a89337872 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 862 | 13 | pytest.raises | test_create_connection_with_invalid_idna_labels | from __future__ import annotations
import io
import logging
import socket
import ssl
import sys
import typing
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd
from unittest import mock
from unittest.mock import MagicMock, Mock, patch
from... | LocationParseError, match=f"Failed to parse: '{host}', label empty or too long") | added | 6a6f41416524fd7a8ac0ccc677b8bcbb67b1dee478aacca95b389d219f5fc420 | pytest.raises|test_create_connection_with_invalid_idna_labels|from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest impo... | null | null | null |
urllib3/urllib3 | train | 595 | b984f4fbfe877d3bbd92826b0968cf8a89337872 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 962 | 8 | assert | test_to_bytes | from __future__ import annotations
import io
import logging
import socket
import ssl
import sys
import typing
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd
from unittest import mock
from unittest.mock import MagicMock, Mock, patch
from... | expected | added | fc106daeb70758899e0f7961f632c95ffc71cd2fa8fee66088c40461df12432a | assert|test_to_bytes|from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMo... | null | null | null |
urllib3/urllib3 | train | 595 | b984f4fbfe877d3bbd92826b0968cf8a89337872 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 1,121 | 13 | pytest.raises | test_parse_url_without_idna | from __future__ import annotations
import io
import logging
import socket
import ssl
import sys
import typing
import warnings
from itertools import chain
from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd
from unittest import mock
from unittest.mock import MagicMock, Mock, patch
from... | LocationParseError, match=f"Failed to parse: {url}") | added | 33442bb1fa55fa691ccca809c815a30ed0b361cf7ce71cecd3f432955d65b88d | pytest.raises|test_parse_url_without_idna|from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittes... | null | null | null |
urllib3/urllib3 | train | 596 | 892eb3b277dabdae4a74f98a53d3b8614add22ab | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 83 | 4 | assert | from __future__ import annotations
import os
import shutil
import subprocess
import sys
import nox
SOURCE_FILES = [
"docs/",
"dummyserver/",
"src/",
"test/",
"noxfile.py",
"setup.py",
]
def tests_impl(
session: nox.Session,
extras: str = "socks,secure,brotli,zstd",
byte_string_c... | process.stderr | modified | e7e0a4987b5787b602c3411c9c338f150a91c3572dc2828b019ed1072a888902 | assert||from __future__ import annotations import os import shutil import subprocess import sys import nox SOURCE_FILES = [ "docs/", "dummyserver/", "src/", "test/", "noxfile.py", "setup.py", ] def tests_impl( session: nox.Session, extras: str = "socks,secure,brotli,zstd", byte_string_comparisons: bool = True, ) -> Non... | process.stderr | 84 | 4 | |
urllib3/urllib3 | train | 596 | 892eb3b277dabdae4a74f98a53d3b8614add22ab | train | test/with_dummyserver/test_chunked_transfer.py | train | urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py | 69 | 16 | assert | _test_body | from __future__ import annotations
import socket
import pytest
from dummyserver.testcase import (
ConnectionMarker,
SocketDummyServerTestCase,
consume_socket,
)
from urllib3 import HTTPConnectionPool
from urllib3.util import SKIP_HEADER
from urllib3.util.retry import Retry
class TestChunkedTransfer(Soc... | body | modified | bcd7eed3b7928a0ede5e79818dd13071f7103f101a050350bc1905680d68e48b | assert|_test_body|from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(So... | body | 72 | 16 |
urllib3/urllib3 | train | 596 | 892eb3b277dabdae4a74f98a53d3b8614add22ab | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 829 | 12 | assert | test_chunked_gzip | from __future__ import annotations
import io
import socket
import time
import typing
import warnings
from test import LONG_TIMEOUT, SHORT_TIMEOUT
from threading import Event
from unittest import mock
from urllib.parse import urlencode
import pytest
from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning
from ... | response.read() | modified | ced44713a3d3f45ad3a5a6634c840c3f3d92517a779491c8b462ba707e101b1b | assert|test_chunked_gzip|from __future__ import annotations import io import socket import time import typing import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import HAS_IPV6_AND_DN... | response.read() | 831 | 12 |
urllib3/urllib3 | train | 596 | 892eb3b277dabdae4a74f98a53d3b8614add22ab | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 317 | 12 | assert | test_verified_with_bad_ca_certs | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | "certificate verify failed" in str(e.value.reason) # PyPy is more specific or "self signed certificate in certificate chain" in str(e.value.reason) | modified | c352a69ee6e88ac5b75dc3d1b88593ee995d7ce497fbfef659a3cd8f12a45a77 | assert|test_verified_with_bad_ca_certs|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_ke... | isinstance(e.value.reason, SSLError) | 320 | 12 |
urllib3/urllib3 | train | 596 | 892eb3b277dabdae4a74f98a53d3b8614add22ab | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 370 | 17 | pytest.raises | test_no_ssl | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | ImportError) | added | 9ffc4f2a485611f4c842df27796e6dd35ee2c284a514b4c708987dc188c745af | pytest.raises|test_no_ssl|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_passwor... | null | null | null |
urllib3/urllib3 | train | 596 | 892eb3b277dabdae4a74f98a53d3b8614add22ab | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 109 | 17 | pytest.raises | test_too_many_redirects | from __future__ import annotations
import gzip
from test import LONG_TIMEOUT
from unittest import mock
import pytest
from dummyserver.server import HAS_IPV6
from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase
from urllib3 import HTTPHeaderDict, HTTPResponse, request
from urllib3.con... | MaxRetryError) | modified | 24bc0e0166df4b30cb8519ac968e5f269e4a34dab5e42c83fb1c545c34ce5d0e | pytest.raises|test_too_many_redirects|from __future__ import annotations import gzip from test import LONG_TIMEOUT from unittest import mock import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3 import HTTPHeaderDict, HTT... | MaxRetryError) | 112 | 17 |
urllib3/urllib3 | train | 596 | 892eb3b277dabdae4a74f98a53d3b8614add22ab | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 367 | 12 | assert | test_https_headers | from __future__ import annotations
import binascii
import hashlib
import ipaddress
import os.path
import pathlib
import shutil
import socket
import ssl
import tempfile
from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL
from test.conftest import ServerConfig
import pytest
import trustme
... | f"{self.http_host_alt}:{self.http_port}" | modified | 4849f90a15cb188df09ef29dc2b23b4ab0b34e59ad698a8a66912c0972cde0ac | assert|test_https_headers|from __future__ import annotations import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig import... | f"{self.http_host_alt}:{self.http_port}" | 370 | 12 |
urllib3/urllib3 | train | 596 | 892eb3b277dabdae4a74f98a53d3b8614add22ab | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 575 | 16 | assert | test_timeout_errors_cause_retries | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
import typing
from coll... | b"Response 2" | modified | d34384df8c6ee94b1033f30302b721d574b556854f45326f2a92942274b337f9 | assert|test_timeout_errors_cause_retries|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import errno import io import os import os.path import select import shutil import socket import ssl import sys import temp... | b"Response 2" | 578 | 16 |
urllib3/urllib3 | train | 597 | 5782d9022419f241d5ef3dd5376d975af30a770c | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,610 | 17 | pytest.raises | test_bad_statusline | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
import typing
from coll... | ProtocolError) | modified | e93637172f2c9afc1414a4f54dd0d132fe3415b22670194d25a5746c52f77f15 | pytest.raises|test_bad_statusline|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile im... | ProtocolError) | 1,608 | 17 |
urllib3/urllib3 | train | 597 | 5782d9022419f241d5ef3dd5376d975af30a770c | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,618 | 17 | pytest.raises | test_unknown_protocol | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
import typing
from coll... | ProtocolError) | modified | 4c4b1ad37c7ab5668f3eb0732bc5a5e02a81111850aa130aac3a8312f9a196b5 | pytest.raises|test_unknown_protocol|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfile ... | ProtocolError) | 1,616 | 17 |
urllib3/urllib3 | train | 597 | 5782d9022419f241d5ef3dd5376d975af30a770c | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,902 | 12 | assert | test_chunked_head_response_does_not_hang | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
import typing
from coll... | list(r.stream()) | modified | b4beb5e18dd208f2f618d5dad1d11f4ebcbfa95ca1305c7fccf16aea84c7c345 | assert|test_chunked_head_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import errno import io import os import os.path import select import shutil import socket import ssl import sys impo... | list(r.stream()) | 1,900 | 12 |
urllib3/urllib3 | train | 597 | 5782d9022419f241d5ef3dd5376d975af30a770c | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 2,111 | 16 | assert | test_multipart_assert_header_parsing_no_defects | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
import typing
from coll... | "multipart/mixed; boundary=36eeb8c4e26d842a" | modified | 9b7c8cc63e291860a046612e755d553ec41ea6604e7f72d2b750ea744b47a96b | assert|test_multipart_assert_header_parsing_no_defects|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import errno import io import os import os.path import select import shutil import socket import ssl import s... | "multipart/mixed; boundary=36eeb8c4e26d842a" | 2,109 | 16 |
urllib3/urllib3 | train | 598 | 70b851b73e42dd5fdfbce3aba79be26846c9edc1 | train | noxfile.py | test | urllib3/urllib3:noxfile.py | 87 | 4 | assert | from __future__ import annotations
import os
import shutil
import subprocess
import sys
import nox
SOURCE_FILES = [
"docs/",
"dummyserver/",
"src/",
"test/",
"noxfile.py",
"setup.py",
]
def tests_impl(
session: nox.Session,
extras: str = "socks,secure,brotli,zstd",
byte_string_c... | process.stderr | added | 0eb06beb6c2929f2c5a87586a9ba0a7423c08334251f6a3c0cdd7c1862fd9b3a | assert||from __future__ import annotations import os import shutil import subprocess import sys import nox SOURCE_FILES = [ "docs/", "dummyserver/", "src/", "test/", "noxfile.py", "setup.py", ] def tests_impl( session: nox.Session, extras: str = "socks,secure,brotli,zstd", byte_string_comparisons: bool = True, ) -> Non... | null | null | null | |
urllib3/urllib3 | train | 598 | 70b851b73e42dd5fdfbce3aba79be26846c9edc1 | train | test/test_wait.py | train | urllib3/urllib3:test/test_wait.py | 177 | 8 | assert | test_eintr_infinite_timeout | from __future__ import annotations
import signal
import threading
import time
import typing
from socket import socket, socketpair
from types import FrameType
import pytest
from urllib3.util.wait import (
_have_working_poll,
poll_wait_for_socket,
select_wait_for_socket,
wait_for_read,
wait_for_soc... | signal.SIGALRM | modified | 7a3085a12bebcf11ff10e2b815389ee0f0572419eaee1c5e831f44031b0dd3bb | assert|test_eintr_infinite_timeout|from __future__ import annotations import signal import threading import time import typing from socket import socket, socketpair from types import FrameType import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait_for_read, ... | signal.SIGALRM | 174 | 8 |
urllib3/urllib3 | train | 598 | 70b851b73e42dd5fdfbce3aba79be26846c9edc1 | train | test/test_wait.py | train | urllib3/urllib3:test/test_wait.py | 186 | 8 | assert | test_eintr_infinite_timeout | from __future__ import annotations
import signal
import threading
import time
import typing
from socket import socket, socketpair
from types import FrameType
import pytest
from urllib3.util.wait import (
_have_working_poll,
poll_wait_for_socket,
select_wait_for_socket,
wait_for_read,
wait_for_soc... | not wfs(a, read=True, timeout=0) | modified | 4b8169f333d838e2e70e1ab8ca4075573beb2d36c96e519f5026f7700ba6011b | assert|test_eintr_infinite_timeout|from __future__ import annotations import signal import threading import time import typing from socket import socket, socketpair from types import FrameType import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait_for_read, ... | not wfs(a, read=True, timeout=0) | 183 | 8 |
urllib3/urllib3 | train | 599 | 9ce420385355b912e90f426abc5064792208e0ad | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 104 | 13 | pytest.raises | test_match_hostname_more_than_one_dnsname_error | from __future__ import annotations
import datetime
import socket
import typing
from http.client import ResponseNotReady
from unittest import mock
import pytest
from urllib3.connection import ( # type: ignore[attr-defined]
RECENT_DATE,
CertificateError,
HTTPConnection,
HTTPSConnection,
_match_hos... | CertificateError, match="doesn't match either of") | modified | a0626ab3792fca93f2727acd376a8757389dd9ba305010e9b33c8cafcc328257 | pytest.raises|test_match_hostname_more_than_one_dnsname_error|from __future__ import annotations import datetime import socket import typing from http.client import ResponseNotReady from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPC... | CertificateError, match="doesn't match either of") | 104 | 13 |
urllib3/urllib3 | train | 599 | 9ce420385355b912e90f426abc5064792208e0ad | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 140 | 12 | assert | test_match_hostname_ip_address | from __future__ import annotations
import datetime
import socket
import typing
from http.client import ResponseNotReady
from unittest import mock
import pytest
from urllib3.connection import ( # type: ignore[attr-defined]
RECENT_DATE,
CertificateError,
HTTPConnection,
HTTPSConnection,
_match_hos... | cert | modified | 9560af5c475087300c37b364ae3ef77f64c65af9b8b091b26eb63e25e326d1a8 | assert|test_match_hostname_ip_address|from __future__ import annotations import datetime import socket import typing from http.client import ResponseNotReady from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPConnection, HTTPSConnecti... | cert | 140 | 12 |
urllib3/urllib3 | train | 599 | 9ce420385355b912e90f426abc5064792208e0ad | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 184 | 13 | pytest.raises | test_match_hostname_dns_with_brackets_doesnt_match | from __future__ import annotations
import datetime
import socket
import typing
from http.client import ResponseNotReady
from unittest import mock
import pytest
from urllib3.connection import ( # type: ignore[attr-defined]
RECENT_DATE,
CertificateError,
HTTPConnection,
HTTPSConnection,
_match_hos... | CertificateError) | modified | 990161c79ed2e109b252028abbc6e8bd386ee1c3dc8d408a2a2bef1a62171163 | pytest.raises|test_match_hostname_dns_with_brackets_doesnt_match|from __future__ import annotations import datetime import socket import typing from http.client import ResponseNotReady from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HT... | CertificateError) | 184 | 13 |
urllib3/urllib3 | train | 599 | 9ce420385355b912e90f426abc5064792208e0ad | train | test/test_connection.py | test | urllib3/urllib3:test/test_connection.py | 209 | 8 | assert | test_HTTPSConnection_default_socket_options | from __future__ import annotations
import datetime
import socket
import typing
from http.client import ResponseNotReady
from unittest import mock
import pytest
from urllib3.connection import ( # type: ignore[attr-defined]
RECENT_DATE,
CertificateError,
HTTPConnection,
HTTPSConnection,
_match_hos... | [(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)] | modified | 5834ef95f5decb59f0e809c4d5205fa99d70b76a25854a824a0ab2961dcb0768 | assert|test_HTTPSConnection_default_socket_options|from __future__ import annotations import datetime import socket import typing from http.client import ResponseNotReady from unittest import mock import pytest from urllib3.connection import ( # type: ignore[attr-defined] RECENT_DATE, CertificateError, HTTPConnection, ... | [(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)] | 209 | 8 |
urllib3/urllib3 | train | 600 | 7c1d682db68fa8964b5d82e18d99cfdfad07e82b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 976 | 8 | assert | test_default_ssl_context_ssl_min_max_versions | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | expected_maximum_version | added | 19d6a66be4c94515c23fb1d433c292d38afc0edc0c67b2994e7e4ac503f621f7 | assert|test_default_ssl_context_ssl_min_max_versions|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_... | null | null | null |
urllib3/urllib3 | train | 600 | 7c1d682db68fa8964b5d82e18d99cfdfad07e82b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 1,027 | 17 | pytest.raises | test_common_name_without_san_fails | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | MaxRetryError) | added | 32af45572e420d23b8c50a53990ae6c0da3ee2e86622c35f0bf87177b5408454 | pytest.raises|test_common_name_without_san_fails|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_... | null | null | null |
urllib3/urllib3 | train | 600 | 7c1d682db68fa8964b5d82e18d99cfdfad07e82b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 1,051 | 17 | pytest.raises | test_common_name_without_san_with_different_common_name | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | MaxRetryError) | added | 853cb604eb1d027a8babc647ea1297ead079e10a7ac7b39f943a343dc52f2883 | pytest.raises|test_common_name_without_san_with_different_common_name|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_n... | null | null | null |
urllib3/urllib3 | train | 600 | 7c1d682db68fa8964b5d82e18d99cfdfad07e82b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 1,093 | 12 | assert | test_hostname_checks_common_name_respected | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | isinstance( err.reason.args[0], (ssl.SSLCertVerificationError, CertificateError) ) | added | 4a6ebb172c73d462897bfb8337723885c10f96a29886da5c42cc4fe611e064a0 | assert|test_hostname_checks_common_name_respected|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl... | null | null | null |
urllib3/urllib3 | train | 601 | 594a01fcd1a6e8db9aea5acdbc696558cf7166c9 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 896 | 20 | assert | test_tls_version_maximum_and_minimum | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | self.tls_protocol_name | modified | 278e2beefa0de7cd0f6cc60362af02cfccbfe96486eeb307a52b66750a7d3977 | assert|test_tls_version_maximum_and_minimum|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_conte... | self.tls_protocol_name | 896 | 20 |
urllib3/urllib3 | train | 601 | 594a01fcd1a6e8db9aea5acdbc696558cf7166c9 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 918 | 12 | assert | test_sslkeylogfile | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | keylog_file.is_file() | modified | 5ea81e85ac949853b0ccedbedc721f5e4cd3785ff3149de33a3a7dec6800e8ad | assert|test_sslkeylogfile|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_passwor... | keylog_file.is_file() | 918 | 12 |
urllib3/urllib3 | train | 601 | 594a01fcd1a6e8db9aea5acdbc696558cf7166c9 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 958 | 12 | assert | test_alpn_default | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | util.ALPN_PROTOCOLS[0] | modified | 4a7f1d1e42c85858be9734665889f68dbc0a08f56c1368b5c3151b7a2d6d9ddf | assert|test_alpn_default|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_context_keyfile_password... | util.ALPN_PROTOCOLS[0] | 958 | 12 |
urllib3/urllib3 | train | 601 | 594a01fcd1a6e8db9aea5acdbc696558cf7166c9 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 1,027 | 17 | pytest.raises | test_common_name_without_san_fails | from __future__ import annotations
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_context_keyfile_password... | MaxRetryError) | modified | f4f7fb026a3a3ab86c74ba8d2fb5a5d3e5ba071faf47ab4bb099424ea52388cc | pytest.raises|test_common_name_without_san_fails|from __future__ import annotations import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requires_ssl_... | MaxRetryError) | 1,027 | 17 |
urllib3/urllib3 | train | 602 | 85d71221a5eb3ce561c73b9619afc0a37d3d11ed | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 789 | 13 | pytest.raises | test_empty_stream | from __future__ import annotations
import contextlib
import http.client as httplib
import socket
import ssl
import sys
import typing
import zlib
from base64 import b64decode
from http.client import IncompleteRead as httplib_IncompleteRead
from io import BufferedReader, BytesIO, TextIOWrapper
from test import onlyBrotl... | StopIteration) | added | 21562fb01e1f7d6b41ecc50142b92f9b5c75fd1e59a6354eae2d3d5cf828f997 | pytest.raises|test_empty_stream|from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWra... | null | null | null |
urllib3/urllib3 | train | 602 | 85d71221a5eb3ce561c73b9619afc0a37d3d11ed | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 808 | 8 | assert | test_buffer_memory_usage_decode_one_chunk | from __future__ import annotations
import contextlib
import http.client as httplib
import socket
import ssl
import sys
import typing
import zlib
from base64 import b64decode
from http.client import IncompleteRead as httplib_IncompleteRead
from io import BufferedReader, BytesIO, TextIOWrapper
from test import onlyBrotl... | content_length | added | ebaa992fd748404c69609dde2f86fdc7ff730246689447df8be81b9ba22f2fce | assert|test_buffer_memory_usage_decode_one_chunk|from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, B... | null | null | null |
urllib3/urllib3 | train | 602 | 85d71221a5eb3ce561c73b9619afc0a37d3d11ed | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 827 | 8 | assert | test_length_no_header | from __future__ import annotations
import contextlib
import http.client as httplib
import socket
import ssl
import sys
import typing
import zlib
from base64 import b64decode
from http.client import IncompleteRead as httplib_IncompleteRead
from io import BufferedReader, BytesIO, TextIOWrapper
from test import onlyBrotl... | None | added | c19949a6906921ddbb2d12e1dd50d4ce59f65cfe6c9f24053db5dfd1df78b68a | assert|test_length_no_header|from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrappe... | null | null | null |
urllib3/urllib3 | train | 602 | 85d71221a5eb3ce561c73b9619afc0a37d3d11ed | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 967 | 8 | assert | test_mock_transfer_encoding_chunked_custom_read | from __future__ import annotations
import contextlib
import http.client as httplib
import socket
import ssl
import sys
import typing
import zlib
from base64 import b64decode
from http.client import IncompleteRead as httplib_IncompleteRead
from io import BufferedReader, BytesIO, TextIOWrapper
from test import onlyBrotl... | response | added | 3c841c6e1f5bcadb2a3a2dcbe84a0f916f9e292b2b1b5b0e709e6123124eba4e | assert|test_mock_transfer_encoding_chunked_custom_read|from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedRea... | null | null | null |
urllib3/urllib3 | train | 603 | 0cdffef493603f8fbdec55071b0866d9ddc1871a | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 179 | 8 | assert | test_configurable_backoff_max | from __future__ import annotations
from test import DUMMY_POOL
from unittest import mock
import freezegun # type: ignore[import]
import pytest
from urllib3.exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ReadTimeoutError,
ResponseError,
SSLError,
)
from urllib3.respons... | max_backoff | modified | 8c1962512aada4f175be22f0e76bf4ecfe4eb82419d96a6423c61aa0f0191cda | assert|test_configurable_backoff_max|from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib... | max_backoff | 178 | 8 |
urllib3/urllib3 | train | 603 | 0cdffef493603f8fbdec55071b0866d9ddc1871a | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 318 | 13 | pytest.raises | test_parse_retry_after_invalid | from __future__ import annotations
from test import DUMMY_POOL
from unittest import mock
import freezegun # type: ignore[import]
import pytest
from urllib3.exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ReadTimeoutError,
ResponseError,
SSLError,
)
from urllib3.respons... | InvalidHeader) | modified | 5bd418fe3ae3ffd80bea2c9564b66917c0a523e04c6e2e0db4f3dea0c3f7841d | pytest.raises|test_parse_retry_after_invalid|from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) fro... | InvalidHeader) | 317 | 13 |
urllib3/urllib3 | train | 603 | 0cdffef493603f8fbdec55071b0866d9ddc1871a | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 334 | 8 | assert | test_respect_retry_after_header_propagated | from __future__ import annotations
from test import DUMMY_POOL
from unittest import mock
import freezegun # type: ignore[import]
import pytest
from urllib3.exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ReadTimeoutError,
ResponseError,
SSLError,
)
from urllib3.respons... | respect_retry_after_header | modified | 7357dc70f444918a9de02bbe514df5bfa6235ef68dca216deb1dc0a20ccb2184 | assert|test_respect_retry_after_header_propagated|from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ... | respect_retry_after_header | 333 | 8 |
urllib3/urllib3 | train | 603 | 0cdffef493603f8fbdec55071b0866d9ddc1871a | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 387 | 16 | assert_* | test_respect_retry_after_header_sleep | from __future__ import annotations
from test import DUMMY_POOL
from unittest import mock
import freezegun # type: ignore[import]
import pytest
from urllib3.exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ReadTimeoutError,
ResponseError,
SSLError,
)
from urllib3.respons... | sleep_duration) | modified | 62ba370aed4875cd6b425e998c845160ba2217b4361d2d7e42c15ab03f2f28f9 | assert_*|test_respect_retry_after_header_sleep|from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) f... | sleep_duration) | 385 | 16 |
urllib3/urllib3 | train | 604 | a43f604115b84a9521363d3ca7fd09c5ec412e14 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 448 | 16 | assert | test_tls_in_tls_makefile_raw_rw_binary | from __future__ import annotations
import platform
import select
import socket
import ssl
import typing
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib... | None | modified | 8d2f905f5133d8b5cac1729585f04448aaaca2b33f28e330766c931c133c7458 | assert|test_tls_in_tls_makefile_raw_rw_binary|from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socke... | None | 448 | 16 |
urllib3/urllib3 | train | 604 | a43f604115b84a9521363d3ca7fd09c5ec412e14 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 525 | 8 | assert_* | test_constructor_params | from __future__ import annotations
import platform
import select
import socket
import ssl
import typing
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib... | mock.ANY) | modified | dc98d2d4cab2b1a3f6783d7dd3df3196743306d5a447a9dab6454a1dfb16c6a4 | assert_*|test_constructor_params|from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib... | mock.ANY) | 525 | 8 |
urllib3/urllib3 | train | 604 | a43f604115b84a9521363d3ca7fd09c5ec412e14 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 543 | 13 | pytest.raises | test_various_flags_errors | from __future__ import annotations
import platform
import select
import socket
import ssl
import typing
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib... | ValueError) | modified | 1ff299e5c4cec0bd688273e797ec7d11cbea8ca23fe833b1bf4d729d7f09a9b5 | pytest.raises|test_various_flags_errors|from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from... | ValueError) | 543 | 13 |
urllib3/urllib3 | train | 604 | a43f604115b84a9521363d3ca7fd09c5ec412e14 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 568 | 17 | pytest.raises | test_wrap_ssl_read_error | from __future__ import annotations
import platform
import select
import socket
import ssl
import typing
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib... | ssl.SSLError) | modified | 93ac1616beadbd973fcacf93b23f0a87fc1d74b32e1d50b56d8d28daf4de54be | pytest.raises|test_wrap_ssl_read_error|from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from ... | ssl.SSLError) | 568 | 17 |
urllib3/urllib3 | train | 605 | 2a0a35bda71409bcdaf267fa9f8b889449b5cdbe | train | test/test_exceptions.py | val | urllib3/urllib3:test/test_exceptions.py | 62 | 8 | assert | test_pool_property_deprecation_warning | from __future__ import annotations
import pickle
from email.errors import MessageDefect
from test import DUMMY_POOL
import pytest
from urllib3.connection import HTTPConnection
from urllib3.connectionpool import HTTPConnectionPool
from urllib3.exceptions import (
ClosedPoolError,
ConnectTimeoutError,
Empt... | err.conn | modified | bf8189b4bd4521e419797fc022b3af9fed4ec283fca82519c407868bc64e9295 | assert|test_pool_property_deprecation_warning|from __future__ import annotations import pickle from email.errors import MessageDefect from test import DUMMY_POOL import pytest from urllib3.connection import HTTPConnection from urllib3.connectionpool import HTTPConnectionPool from urllib3.exceptions import ( ClosedPoolE... | err.conn | 62 | 8 |
urllib3/urllib3 | train | 605 | 2a0a35bda71409bcdaf267fa9f8b889449b5cdbe | train | test/test_exceptions.py | val | urllib3/urllib3:test/test_exceptions.py | 68 | 8 | assert | test_pool_property_deprecation_warning | from __future__ import annotations
import pickle
from email.errors import MessageDefect
from test import DUMMY_POOL
import pytest
from urllib3.connection import HTTPConnection
from urllib3.connectionpool import HTTPConnectionPool
from urllib3.exceptions import (
ClosedPoolError,
ConnectTimeoutError,
Empt... | isinstance(record.message, Warning) | modified | 62f9deb4b9f71c2953f56f8ccf5830ab9d0934df5c060ac643dc2a71b50e074a | assert|test_pool_property_deprecation_warning|from __future__ import annotations import pickle from email.errors import MessageDefect from test import DUMMY_POOL import pytest from urllib3.connection import HTTPConnection from urllib3.connectionpool import HTTPConnectionPool from urllib3.exceptions import ( ClosedPoolE... | isinstance(record.message, Warning) | 68 | 8 |
urllib3/urllib3 | train | 606 | 4855d71ad5535bdff47a0dc5cfe09fb610ff6576 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 238 | 12 | assert | test_ssl_object_attributes | from __future__ import annotations
import platform
import select
import socket
import ssl
import typing
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib... | None | modified | 45dd874b9b35e6dcab789a0ffd5171716cb6238fdb935fac1ded9a857d827c1f | assert|test_ssl_object_attributes|from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urlli... | None | 235 | 12 |
urllib3/urllib3 | train | 606 | 4855d71ad5535bdff47a0dc5cfe09fb610ff6576 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 403 | 16 | assert | test_tls_in_tls_tunnel | from __future__ import annotations
import platform
import select
import socket
import ssl
import typing
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib... | None | modified | 4fce5353527dce74dda4d5c52c0e8ff0892491f04d6ca95ad6cf8aa6963dfa89 | assert|test_tls_in_tls_tunnel|from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.u... | None | 400 | 16 |
urllib3/urllib3 | train | 606 | 4855d71ad5535bdff47a0dc5cfe09fb610ff6576 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 451 | 16 | assert | test_tls_in_tls_makefile_raw_rw_binary | from __future__ import annotations
import platform
import select
import socket
import ssl
import typing
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib... | None | modified | 2148aec2bdbc6950c1ade621c57f5d56703de7482bb129e3929e7c950443ea87 | assert|test_tls_in_tls_makefile_raw_rw_binary|from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socke... | None | 448 | 16 |
urllib3/urllib3 | train | 606 | 4855d71ad5535bdff47a0dc5cfe09fb610ff6576 | train | test/test_ssltransport.py | train | urllib3/urllib3:test/test_ssltransport.py | 528 | 8 | assert_* | test_constructor_params | from __future__ import annotations
import platform
import select
import socket
import ssl
import typing
from unittest import mock
import pytest
from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket
from urllib3.util import ssl_
from urllib... | mock.ANY) | modified | 4f68f3b998fd4c2dfb4896786ebeb73ae87a31f8322042d1bdf6887e86a130f3 | assert_*|test_constructor_params|from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib... | mock.ANY) | 525 | 8 |
urllib3/urllib3 | train | 607 | 62ae1c81dd625d4dc788743aef638e64d26db0c4 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 214 | 13 | pytest.raises | test_assert_fingerprint_raises_exception_on_none_cert | from __future__ import annotations
import ssl
import typing
from unittest import mock
import pytest
from urllib3.exceptions import ProxySchemeUnsupported, SSLError
from urllib3.util import ssl_
class TestSSL:
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
... | SSLError) | added | 76518ff3817cfc7534a134582f925c30f69184bf2c5ac5593aae590a6ad85bd8 | pytest.raises|test_assert_fingerprint_raises_exception_on_none_cert|from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "addr", [ # IPv6 ... | null | null | null |
urllib3/urllib3 | train | 607 | 62ae1c81dd625d4dc788743aef638e64d26db0c4 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 518 | 12 | assert | test_assert_invalid_fingerprint | from __future__ import annotations
import contextlib
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_contex... | f'Fingerprints did not match. Expected "{expected}", got "{got}"' | modified | b49ac96b133db87d1535a25bae734431ba2615dd37ca220b2c9023f5a6674933 | assert|test_assert_invalid_fingerprint|from __future__ import annotations import contextlib import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, requi... | f'Fingerprints did not match. Expected "{expected}", got "{got}"' | 517 | 12 |
urllib3/urllib3 | train | 607 | 62ae1c81dd625d4dc788743aef638e64d26db0c4 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 908 | 20 | assert | test_tls_version_maximum_and_minimum | from __future__ import annotations
import contextlib
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_contex... | self.tls_protocol_name | added | c8d2c7cb135e0581a8584dc0c815150f4aa8e210af94bd3886c8c2c7fbe80c0d | assert|test_tls_version_maximum_and_minimum|from __future__ import annotations import contextlib import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, ... | null | null | null |
urllib3/urllib3 | train | 607 | 62ae1c81dd625d4dc788743aef638e64d26db0c4 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 1,046 | 17 | pytest.raises | test_common_name_without_san_fails | from __future__ import annotations
import contextlib
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_contex... | MaxRetryError) | added | 0e2627968c64d738dacfe41e71468a0b8f8dbd93ad695e6e4963f6b0dbf71830 | pytest.raises|test_common_name_without_san_fails|from __future__ import annotations import contextlib import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_netw... | null | null | null |
urllib3/urllib3 | train | 607 | 62ae1c81dd625d4dc788743aef638e64d26db0c4 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 1,112 | 12 | assert | test_hostname_checks_common_name_respected | from __future__ import annotations
import contextlib
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_contex... | isinstance( err.reason.args[0], (ssl.SSLCertVerificationError, CertificateError) ) | added | 02a23d92a1474fcef55e7f0d8010e937ea4b22bd28e3fecd8f6457dd74f3645b | assert|test_hostname_checks_common_name_respected|from __future__ import annotations import contextlib import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_net... | null | null | null |
urllib3/urllib3 | train | 608 | 26013d00201d772d6572c8830ed314f2834feb3a | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 576 | 16 | assert | test_timeout_errors_cause_retries | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import contextlib
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
impor... | b"Response 2" | modified | 4830e67079b69f80a482ac189d6a5fe6e0e93a2a10db8499cd6a83385098fbab | assert|test_timeout_errors_cause_retries|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import contextlib import errno import io import os import os.path import select import shutil import socket import ssl impo... | b"Response 2" | 575 | 16 |
urllib3/urllib3 | train | 608 | 26013d00201d772d6572c8830ed314f2834feb3a | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 823 | 12 | assert | test_connection_closed_on_read_timeout_preload_false | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import contextlib
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
impor... | rlist | modified | 43b5d6778bbef7de63fc3073f21eea3c12ee5ce4de02a8684c14662682c4602c | assert|test_connection_closed_on_read_timeout_preload_false|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import contextlib import errno import io import os import os.path import select import shutil import soc... | rlist | 822 | 12 |
urllib3/urllib3 | train | 608 | 26013d00201d772d6572c8830ed314f2834feb3a | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,689 | 12 | assert | test_httplib_headers_case_insensitive | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import contextlib
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
impor... | dict(r.headers.items()) | added | 8c78813b30d84579f0d19df947fdbedd0aba713e43ce86d501637732afb39565 | assert|test_httplib_headers_case_insensitive|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import contextlib import errno import io import os import os.path import select import shutil import socket import ssl ... | null | null | null |
urllib3/urllib3 | train | 608 | 26013d00201d772d6572c8830ed314f2834feb3a | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,958 | 12 | assert | test_chunked_head_response_does_not_hang | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import contextlib
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
impor... | list(r.stream()) | added | d53d3a104446f2c2e6fa9fa6878a7a6120ab663d7de1fc439d342ae7338c8b79 | assert|test_chunked_head_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import contextlib import errno import io import os import os.path import select import shutil import socket import s... | null | null | null |
urllib3/urllib3 | train | 609 | 214b184923388328919b0a4b0c15bff603aa51be | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 246 | 8 | assert | test_status_forcelist | from __future__ import annotations
from test import DUMMY_POOL
from unittest import mock
import freezegun # type: ignore[import]
import pytest
from urllib3.exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ReadTimeoutError,
ResponseError,
SSLError,
)
from urllib3.respons... | not retry.is_retry("GET", status_code=400) | added | 334354af66ab42159d6950146e9887b29664ebe2cc27edf7775693fee4ca8b2a | assert|test_status_forcelist|from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.respon... | null | null | null |
urllib3/urllib3 | train | 609 | 214b184923388328919b0a4b0c15bff603aa51be | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 276 | 13 | pytest.raises | test_error_message | from __future__ import annotations
from test import DUMMY_POOL
from unittest import mock
import freezegun # type: ignore[import]
import pytest
from urllib3.exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ReadTimeoutError,
ResponseError,
SSLError,
)
from urllib3.respons... | MaxRetryError, match="read timed out") | added | 5b367d3e2b3b5fa398cdd47dc727eb7950ba1f7685851ae37a9d07543493cb70 | pytest.raises|test_error_message|from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.re... | null | null | null |
urllib3/urllib3 | train | 609 | 214b184923388328919b0a4b0c15bff603aa51be | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 326 | 8 | assert | test_history | from __future__ import annotations
from test import DUMMY_POOL
from unittest import mock
import freezegun # type: ignore[import]
import pytest
from urllib3.exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ReadTimeoutError,
ResponseError,
SSLError,
)
from urllib3.respons... | test_history3 | added | 53171a7583b10a734202b2c85a33829e4ed107aaed620b71a4ea180260e54de4 | assert|test_history|from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.response import... | null | null | null |
urllib3/urllib3 | train | 609 | 214b184923388328919b0a4b0c15bff603aa51be | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 416 | 16 | assert_* | test_respect_retry_after_header_sleep | from __future__ import annotations
from test import DUMMY_POOL
from unittest import mock
import freezegun # type: ignore[import]
import pytest
from urllib3.exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ReadTimeoutError,
ResponseError,
SSLError,
)
from urllib3.respons... | sleep_duration) | added | d28ba216ba8b9875270b6e275fee85961e87f9c5ba7f395fa7a4307fbbc5559e | assert_*|test_respect_retry_after_header_sleep|from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) f... | null | null | null |
urllib3/urllib3 | train | 610 | 4c4451b51ddb6e482a81a2607bdcdfe58da8651c | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 772 | 8 | assert | test_set_cert_default_cert_required | from __future__ import annotations
import contextlib
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_contex... | len(w) == 1 and str(w[0].message) == ( "HTTPSConnection.set_cert() is deprecated and will be removed in urllib3 v2.1.0. " "Instead provide the parameters to the HTTPSConnection constructor." ) | modified | ea862c89e9bcd00e6cccd945e2229459ae4e2c203a4508696c1ddb9dc641a9b0 | assert|test_set_cert_default_cert_required|from __future__ import annotations import contextlib import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requires_network, r... | len(w) == 1 and str(w[0].message) == ( "HTTPSConnection.set_cert() is deprecated and will be removed in urllib3 v2.1.0. " "Instead provide the parameters to the HTTPSConnection constructor." ) | 770 | 8 |
urllib3/urllib3 | train | 610 | 4c4451b51ddb6e482a81a2607bdcdfe58da8651c | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 792 | 8 | assert | test_set_cert_inherits_cert_reqs_from_ssl_context | from __future__ import annotations
import contextlib
import datetime
import os.path
import shutil
import ssl
import sys
import tempfile
import warnings
from pathlib import Path
from test import (
LONG_TIMEOUT,
SHORT_TIMEOUT,
TARPIT_HOST,
notSecureTransport,
requires_network,
requires_ssl_contex... | len(w) == 1 and str(w[0].message) == ( "HTTPSConnection.set_cert() is deprecated and will be removed in urllib3 v2.1.0. " "Instead provide the parameters to the HTTPSConnection constructor." ) | modified | 5234c82aade7f2c8df74f4a4be3272c4a6c37bc69bd543f1e1ed381da76c4c03 | assert|test_set_cert_inherits_cert_reqs_from_ssl_context|from __future__ import annotations import contextlib import datetime import os.path import shutil import ssl import sys import tempfile import warnings from pathlib import Path from test import ( LONG_TIMEOUT, SHORT_TIMEOUT, TARPIT_HOST, notSecureTransport, requi... | len(w) == 1 and str(w[0].message) == ( "HTTPSConnection.set_cert() is deprecated and will be removed in urllib3 v2.1.0. " "Instead provide the parameters to the HTTPSConnection constructor." ) | 790 | 8 |
urllib3/urllib3 | train | 610 | 4c4451b51ddb6e482a81a2607bdcdfe58da8651c | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 283 | 12 | assert | test_headers | from __future__ import annotations
import binascii
import hashlib
import ipaddress
import os.path
import pathlib
import shutil
import socket
import ssl
import tempfile
from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL
from test.conftest import ServerConfig
import pytest
import trustme
... | "bar" | modified | 398bdc8c07ddd47f82d0313ccb4bd7fafba6291fc3cea2fe517b1f1e7a3de2f1 | assert|test_headers|from __future__ import annotations import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig import pytes... | "bar" | 282 | 12 |
urllib3/urllib3 | train | 610 | 4c4451b51ddb6e482a81a2607bdcdfe58da8651c | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 375 | 12 | assert | test_https_headers | from __future__ import annotations
import binascii
import hashlib
import ipaddress
import os.path
import pathlib
import shutil
import socket
import ssl
import tempfile
from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL
from test.conftest import ServerConfig
import pytest
import trustme
... | "quux" | modified | 8eefc4c8dc94a5641dd770e4a2d799a1ea27b67ce161779a0c8b7bcba7a1b4d9 | assert|test_https_headers|from __future__ import annotations import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import ServerConfig import... | "quux" | 374 | 12 |
urllib3/urllib3 | train | 610 | 4c4451b51ddb6e482a81a2607bdcdfe58da8651c | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 758 | 12 | assert | test_https_proxy_hostname_verification | from __future__ import annotations
import binascii
import hashlib
import ipaddress
import os.path
import pathlib
import shutil
import socket
import ssl
import tempfile
from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL
from test.conftest import ServerConfig
import pytest
import trustme
... | "hostname 'localhost' doesn't match" in str( ssl_error ) or "Hostname mismatch" in str(ssl_error) | modified | c8088505db94789a050e7793c119a7f70e556ada45b11960373ea32a65a0457a | assert|test_https_proxy_hostname_verification|from __future__ import annotations import binascii import hashlib import ipaddress import os.path import pathlib import shutil import socket import ssl import tempfile from test import LONG_TIMEOUT, SHORT_TIMEOUT, onlySecureTransport, withPyOpenSSL from test.conftest import... | "hostname 'localhost' doesn't match" in str( ssl_error ) or "Hostname mismatch" in str(ssl_error) | 755 | 12 |
urllib3/urllib3 | train | 610 | 4c4451b51ddb6e482a81a2607bdcdfe58da8651c | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 86 | 12 | assert | test_multi_setcookie | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import contextlib
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
impor... | {"set-cookie": "foo=1, bar=1"} | modified | 6678508455bda5c486ea9512e3a982d83297e41b7fdf430207672e10aba7ba16 | assert|test_multi_setcookie|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import contextlib import errno import io import os import os.path import select import shutil import socket import ssl import sys import... | {"set-cookie": "foo=1, bar=1"} | 85 | 12 |
urllib3/urllib3 | train | 610 | 4c4451b51ddb6e482a81a2607bdcdfe58da8651c | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,103 | 12 | assert | test_headers | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import contextlib
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
impor... | r.data | modified | 18de0e81d06d525e30aa08af0c6d0d39892df4523732295d8d1dded7429cc39e | assert|test_headers|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import contextlib import errno import io import os import os.path import select import shutil import socket import ssl import sys import tempfil... | r.data | 1,102 | 12 |
urllib3/urllib3 | train | 610 | 4c4451b51ddb6e482a81a2607bdcdfe58da8651c | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 2,208 | 8 | assert | test_content_length_0_by_default | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from __future__ import annotations
import contextlib
import errno
import io
import os
import os.path
import select
import shutil
import socket
import ssl
import sys
import tempfile
import time
impor... | sent_bytes | modified | 6457a106bb271a003f6d2943e9a34a188d25035e224dc939f4fc7770cce8a1f2 | assert|test_content_length_0_by_default|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from __future__ import annotations import contextlib import errno import io import os import os.path import select import shutil import socket import ssl impor... | sent_bytes | 2,206 | 8 |
vkbottle/vkbottle | train | 0 | 82b02119b1aed2b4903b4f9420ba033578b6c11e | train | tests/api.py | train | vkbottle/vkbottle:tests/api.py | 7 | 4 | assert | test_api_response | from vkbottle.api import API
import pytest
@pytest.mark.asyncio
async def test_api_response(api: API):
response = await api.request("users.get", {})
assert | isinstance(response, dict) | added | e657da5e0101bdb6621eea662e4cb607cf0ad232e47fe58ba540ef90a3493fed | assert|test_api_response|from vkbottle.api import API import pytest @pytest.mark.asyncio async def test_api_response(api: API): response = await api.request("users.get", {}) assert | null | null | null |
vkbottle/vkbottle | train | 0 | 82b02119b1aed2b4903b4f9420ba033578b6c11e | train | tests/api.py | train | vkbottle/vkbottle:tests/api.py | 8 | 4 | assert | test_api_response | from vkbottle.api import API
import pytest
@pytest.mark.asyncio
async def test_api_response(api: API):
response = await api.request("users.get", {})
assert isinstance(response, dict)
assert response["first_name"] == | "Павел" | added | de61d5dbf564f8279b932c807d392da8262fdf0f35d83be736c4063e1bbe78bf | assert|test_api_response|from vkbottle.api import API import pytest @pytest.mark.asyncio async def test_api_response(api: API): response = await api.request("users.get", {}) assert isinstance(response, dict) assert response["first_name"] == | null | null | null |
vkbottle/vkbottle | train | 1 | bb9bce98336fb677247846e8e7a173833682a199 | train | tests/api_test.py | train | vkbottle/vkbottle:tests/api_test.py | 8 | 4 | assert | test_api_response | from vkbottle.api import API
import pytest
@pytest.mark.asyncio
async def test_api_response(api: API):
response = await api.request("users.get", {"user_ids": 1})
assert | isinstance(response, list) | added | b4f0666116c851dd3ad55f371bb55d89560cd302b879440d2f0cd9e4edbef6d7 | assert|test_api_response|from vkbottle.api import API import pytest @pytest.mark.asyncio async def test_api_response(api: API): response = await api.request("users.get", {"user_ids": 1}) assert | null | null | null |
vkbottle/vkbottle | train | 1 | bb9bce98336fb677247846e8e7a173833682a199 | train | tests/api_test.py | train | vkbottle/vkbottle:tests/api_test.py | 9 | 4 | assert | test_api_response | from vkbottle.api import API
import pytest
@pytest.mark.asyncio
async def test_api_response(api: API):
response = await api.request("users.get", {"user_ids": 1})
assert isinstance(response, list)
assert response[0]["first_name"] == | "Павел" | added | c8cacab891de698e8bd30e53a4dd627e12f530429f0c7319161e56dd8182758e | assert|test_api_response|from vkbottle.api import API import pytest @pytest.mark.asyncio async def test_api_response(api: API): response = await api.request("users.get", {"user_ids": 1}) assert isinstance(response, list) assert response[0]["first_name"] == | null | null | null |
vkbottle/vkbottle | train | 1 | bb9bce98336fb677247846e8e7a173833682a199 | train | tests/conftest.py | test | vkbottle/vkbottle:tests/conftest.py | 10 | 4 | assert | import pytest
import os
from vkbottle.api import API
TOKEN = os.getenv("TOKEN")
@pytest.fixture()
def api():
assert | TOKEN | added | a2533f48f902b06979717fc8a1ceb39e6170edbe2501c0ff25ba22d41c185731 | assert||import pytest import os from vkbottle.api import API TOKEN = os.getenv("TOKEN") @pytest.fixture() def api(): assert | null | null | null | |
vkbottle/vkbottle | train | 2 | 712fb872387dba10b2120c94a0e81af1a517fc6a | train | tests/exception_manager_test.py | train | vkbottle/vkbottle:tests/exception_manager_test.py | 9 | 8 | assert | test_exc_manager_code_error | from vkbottle import CodeErrorFactory, SingleError
def test_exc_manager_code_error():
exc_manager = CodeErrorFactory()
try:
raise exc_manager(7)
except exc_manager(6):
assert | False | added | 53744a342bca9d3e8a57bc7bb99328dc7ed0f506c7eba788fb9e65f733b22d50 | assert|test_exc_manager_code_error|from vkbottle import CodeErrorFactory, SingleError def test_exc_manager_code_error(): exc_manager = CodeErrorFactory() try: raise exc_manager(7) except exc_manager(6): assert | null | null | null |
vkbottle/vkbottle | train | 2 | 712fb872387dba10b2120c94a0e81af1a517fc6a | train | tests/exception_manager_test.py | train | vkbottle/vkbottle:tests/exception_manager_test.py | 11 | 8 | assert | test_exc_manager_code_error | from vkbottle import CodeErrorFactory, SingleError
def test_exc_manager_code_error():
exc_manager = CodeErrorFactory()
try:
raise exc_manager(7)
except exc_manager(6):
assert False
except exc_manager(7):
assert | True | added | 281b14bd5aec3b1b8966f33d513ddb3e26a1f757a49c26347bb46125b42690d0 | assert|test_exc_manager_code_error|from vkbottle import CodeErrorFactory, SingleError def test_exc_manager_code_error(): exc_manager = CodeErrorFactory() try: raise exc_manager(7) except exc_manager(6): assert False except exc_manager(7): assert | null | null | null |
vkbottle/vkbottle | train | 2 | 712fb872387dba10b2120c94a0e81af1a517fc6a | train | tests/exception_manager_test.py | train | vkbottle/vkbottle:tests/exception_manager_test.py | 13 | 8 | assert | test_exc_manager_code_error | from vkbottle import CodeErrorFactory, SingleError
def test_exc_manager_code_error():
exc_manager = CodeErrorFactory()
try:
raise exc_manager(7)
except exc_manager(6):
assert False
except exc_manager(7):
assert True
except exc_manager():
assert | False | added | 68a366cc1b96192e3525b77ecf174e2e84990b48b8215f5300316d013dfc8214 | assert|test_exc_manager_code_error|from vkbottle import CodeErrorFactory, SingleError def test_exc_manager_code_error(): exc_manager = CodeErrorFactory() try: raise exc_manager(7) except exc_manager(6): assert False except exc_manager(7): assert True except exc_manager(): assert | null | null | null |
vkbottle/vkbottle | train | 2 | 712fb872387dba10b2120c94a0e81af1a517fc6a | train | tests/exception_manager_test.py | train | vkbottle/vkbottle:tests/exception_manager_test.py | 25 | 8 | assert | test_exc_manager_single_error | from vkbottle import CodeErrorFactory, SingleError
def test_exc_manager_code_error():
exc_manager = CodeErrorFactory()
try:
raise exc_manager(7)
except exc_manager(6):
assert False
except exc_manager(7):
assert True
except exc_manager():
assert False
def test_exc_... | False | added | fe39a041cffcda069efac2668e094bf3a61d7ed8216399eb2a20ee9e53625005 | assert|test_exc_manager_single_error|from vkbottle import CodeErrorFactory, SingleError def test_exc_manager_code_error(): exc_manager = CodeErrorFactory() try: raise exc_manager(7) except exc_manager(6): assert False except exc_manager(7): assert True except exc_manager(): assert False def test_exc_manager_single_erro... | null | null | null |
vkbottle/vkbottle | train | 2 | 712fb872387dba10b2120c94a0e81af1a517fc6a | train | tests/http_test.py | train | vkbottle/vkbottle:tests/http_test.py | 9 | 4 | assert | test_client | from vkbottle import SessionManager, AiohttpClient
import pytest
@pytest.mark.asyncio
async def test_client():
client = AiohttpClient()
text = await client.request_text("GET", "https://google.com")
await client.close()
assert | text | added | d3f57dd6dfc839eef7b4b8adecbf73336829c628711ae5728ebfeb8275999561 | assert|test_client|from vkbottle import SessionManager, AiohttpClient import pytest @pytest.mark.asyncio async def test_client(): client = AiohttpClient() text = await client.request_text("GET", "https://google.com") await client.close() assert | null | null | null |
vkbottle/vkbottle | train | 2 | 712fb872387dba10b2120c94a0e81af1a517fc6a | train | tests/http_test.py | train | vkbottle/vkbottle:tests/http_test.py | 16 | 4 | assert | test_session_manager | from vkbottle import SessionManager, AiohttpClient
import pytest
@pytest.mark.asyncio
async def test_client():
client = AiohttpClient()
text = await client.request_text("GET", "https://google.com")
await client.close()
assert text
@pytest.mark.asyncio
async def test_session_manager():
session_mana... | text | added | 7db3fafdcef7e29e69ade45eef908aa4d8bed8f5b164024105829b1fd0a8f7af | assert|test_session_manager|from vkbottle import SessionManager, AiohttpClient import pytest @pytest.mark.asyncio async def test_client(): client = AiohttpClient() text = await client.request_text("GET", "https://google.com") await client.close() assert text @pytest.mark.asyncio async def test_session_manager(): sessio... | null | null | null |
vkbottle/vkbottle | train | 3 | d479ca2980306087dacb6124c0b60a9e6b15d5fe | train | tests/api_test.py | train | vkbottle/vkbottle:tests/api_test.py | 16 | 4 | assert | test_api_response | from vkbottle import API
import pytest
def skippable_api_test(func):
async def wrapper(api: API):
if not api.token:
return pytest.skip("TOKEN is not set as enviroment variable")
return await func(api)
return wrapper
@pytest.mark.asyncio
@skippable_api_test
async def test_api_respo... | isinstance(response, dict) | added | e63c8aaa7a253ed672116473f405894e98946ba3e197626cc155bbb479223fa2 | assert|test_api_response|from vkbottle import API import pytest def skippable_api_test(func): async def wrapper(api: API): if not api.token: return pytest.skip("TOKEN is not set as enviroment variable") return await func(api) return wrapper @pytest.mark.asyncio @skippable_api_test async def test_api_response(api: API):... | null | null | null |
vkbottle/vkbottle | train | 3 | d479ca2980306087dacb6124c0b60a9e6b15d5fe | train | tests/api_test.py | train | vkbottle/vkbottle:tests/api_test.py | 17 | 4 | assert | test_api_response | from vkbottle import API
import pytest
def skippable_api_test(func):
async def wrapper(api: API):
if not api.token:
return pytest.skip("TOKEN is not set as enviroment variable")
return await func(api)
return wrapper
@pytest.mark.asyncio
@skippable_api_test
async def test_api_respo... | isinstance(response["response"], list) | added | e50de34a19e7ca9376b13d38f00f3293a4039a9046035ab98abccc3ecd674f31 | assert|test_api_response|from vkbottle import API import pytest def skippable_api_test(func): async def wrapper(api: API): if not api.token: return pytest.skip("TOKEN is not set as enviroment variable") return await func(api) return wrapper @pytest.mark.asyncio @skippable_api_test async def test_api_response(api: API):... | null | null | null |
vkbottle/vkbottle | train | 3 | d479ca2980306087dacb6124c0b60a9e6b15d5fe | train | tests/api_test.py | train | vkbottle/vkbottle:tests/api_test.py | 25 | 4 | assert | test_api_typed_response | from vkbottle import API
import pytest
def skippable_api_test(func):
async def wrapper(api: API):
if not api.token:
return pytest.skip("TOKEN is not set as enviroment variable")
return await func(api)
return wrapper
@pytest.mark.asyncio
@skippable_api_test
async def test_api_respo... | isinstance(response, list) | added | 1db09b82fb15d573317f27cf9cf02a5d113aa77c7b2e61e3ed1787652e43298a | assert|test_api_typed_response|from vkbottle import API import pytest def skippable_api_test(func): async def wrapper(api: API): if not api.token: return pytest.skip("TOKEN is not set as enviroment variable") return await func(api) return wrapper @pytest.mark.asyncio @skippable_api_test async def test_api_response(api:... | null | null | null |
vkbottle/vkbottle | train | 3 | d479ca2980306087dacb6124c0b60a9e6b15d5fe | train | tests/api_test.py | train | vkbottle/vkbottle:tests/api_test.py | 26 | 4 | assert | test_api_typed_response | from vkbottle import API
import pytest
def skippable_api_test(func):
async def wrapper(api: API):
if not api.token:
return pytest.skip("TOKEN is not set as enviroment variable")
return await func(api)
return wrapper
@pytest.mark.asyncio
@skippable_api_test
async def test_api_respo... | response[0].first_name | added | c30094b6db4bfdf177a3a88961f59254df8bd58c10514c8e8886f33ff8615338 | assert|test_api_typed_response|from vkbottle import API import pytest def skippable_api_test(func): async def wrapper(api: API): if not api.token: return pytest.skip("TOKEN is not set as enviroment variable") return await func(api) return wrapper @pytest.mark.asyncio @skippable_api_test async def test_api_response(api:... | null | null | null |
vkbottle/vkbottle | train | 4 | 0f6b27aa6205ea3fdd0596b36ab066313f59494e | train | tests/api_test.py | train | vkbottle/vkbottle:tests/api_test.py | 26 | 4 | assert | test_api_typed_response | from vkbottle import API
import pytest
def skippable_api_test(func):
async def wrapper(api: API):
if not api.token:
return pytest.skip("TOKEN is not set as enviroment variable")
return await func(api)
return wrapper
@pytest.mark.asyncio
@skippable_api_test
async def test_api_respo... | "Павел" | modified | d3f89d1d9a9df45fd50936908d6963b3dfbe7d082dbecc7c1dda90e90ac9bb26 | assert|test_api_typed_response|from vkbottle import API import pytest def skippable_api_test(func): async def wrapper(api: API): if not api.token: return pytest.skip("TOKEN is not set as enviroment variable") return await func(api) return wrapper @pytest.mark.asyncio @skippable_api_test async def test_api_response(api:... | response[0].first_name | 26 | 4 |
vkbottle/vkbottle | train | 5 | c1c52b6e3ed634176ef898897ae531c572e9b6c7 | train | tests/vkscript_converter_test.py | train | vkbottle/vkbottle:tests/vkscript_converter_test.py | 16 | 4 | assert | test_vkscript | from vkbottle import vkscript
VKSCRIPT = "var a=%A%;var some_list=[];while(a<100){API.users.get({user_id:a});a = a + 1;};return some_list;"
@vkscript
def my_execute_code(api, a: int = 10):
some_list = []
while a < 100:
api.users.get(user_id=a)
a += 1
return some_list
def test_vkscript()... | VKSCRIPT.replace("%A%", "10") | added | b3a6a47053642107c5520b510723ab0863465c668fbce6d6cff0f4e244a41b36 | assert|test_vkscript|from vkbottle import vkscript VKSCRIPT = "var a=%A%;var some_list=[];while(a<100){API.users.get({user_id:a});a = a + 1;};return some_list;" @vkscript def my_execute_code(api, a: int = 10): some_list = [] while a < 100: api.users.get(user_id=a) a += 1 return some_list def test_vkscript(): assert my_... | null | null | null |
vkbottle/vkbottle | train | 5 | c1c52b6e3ed634176ef898897ae531c572e9b6c7 | train | tests/vkscript_converter_test.py | train | vkbottle/vkbottle:tests/vkscript_converter_test.py | 17 | 4 | assert | test_vkscript | from vkbottle import vkscript
VKSCRIPT = "var a=%A%;var some_list=[];while(a<100){API.users.get({user_id:a});a = a + 1;};return some_list;"
@vkscript
def my_execute_code(api, a: int = 10):
some_list = []
while a < 100:
api.users.get(user_id=a)
a += 1
return some_list
def test_vkscript()... | VKSCRIPT.replace("%A%", "94") | added | 7b2f8c2b2023c7ef5dba9146057c91876deb3e99f7b73bf171de57df07c6211d | assert|test_vkscript|from vkbottle import vkscript VKSCRIPT = "var a=%A%;var some_list=[];while(a<100){API.users.get({user_id:a});a = a + 1;};return some_list;" @vkscript def my_execute_code(api, a: int = 10): some_list = [] while a < 100: api.users.get(user_id=a) a += 1 return some_list def test_vkscript(): assert my_... | null | null | null |
vkbottle/vkbottle | train | 6 | 86c6ec34827481f196c13ca7aaebb5fc26216534 | train | tests/exception_manager_test.py | train | vkbottle/vkbottle:tests/exception_manager_test.py | 9 | 8 | assert | test_exc_manager_code_error | from vkbottle import CodeErrorFactory, SingleError, swear
def test_exc_manager_code_error():
exc_manager = CodeErrorFactory()
try:
raise exc_manager(7)
except exc_manager(6):
assert | False | modified | ffbdee323f2554de8cd4e85ef9689e03fcb79cca2f972aa709e5e613d42fdeaa | assert|test_exc_manager_code_error|from vkbottle import CodeErrorFactory, SingleError, swear def test_exc_manager_code_error(): exc_manager = CodeErrorFactory() try: raise exc_manager(7) except exc_manager(6): assert | False | 9 | 8 |
vkbottle/vkbottle | train | 6 | 86c6ec34827481f196c13ca7aaebb5fc26216534 | train | tests/exception_manager_test.py | train | vkbottle/vkbottle:tests/exception_manager_test.py | 13 | 8 | assert | test_exc_manager_code_error | from vkbottle import CodeErrorFactory, SingleError, swear
def test_exc_manager_code_error():
exc_manager = CodeErrorFactory()
try:
raise exc_manager(7)
except exc_manager(6):
assert False
except exc_manager(7):
assert True
except exc_manager():
assert | False | modified | 56b66b7e2fcbe8a3f9833714be97e7c0b6ab5989c90048b954bf6bce53e1596f | assert|test_exc_manager_code_error|from vkbottle import CodeErrorFactory, SingleError, swear def test_exc_manager_code_error(): exc_manager = CodeErrorFactory() try: raise exc_manager(7) except exc_manager(6): assert False except exc_manager(7): assert True except exc_manager(): assert | False | 13 | 8 |
vkbottle/vkbottle | train | 6 | 86c6ec34827481f196c13ca7aaebb5fc26216534 | train | tests/exception_manager_test.py | train | vkbottle/vkbottle:tests/exception_manager_test.py | 25 | 8 | assert | test_exc_manager_single_error | from vkbottle import CodeErrorFactory, SingleError, swear
def test_exc_manager_code_error():
exc_manager = CodeErrorFactory()
try:
raise exc_manager(7)
except exc_manager(6):
assert False
except exc_manager(7):
assert True
except exc_manager():
assert False
def te... | False | modified | 0f7022bbe3e5045ae616f2b3182fd194bdf5f7e3fa0691e253a2641ee49091bc | assert|test_exc_manager_single_error|from vkbottle import CodeErrorFactory, SingleError, swear def test_exc_manager_code_error(): exc_manager = CodeErrorFactory() try: raise exc_manager(7) except exc_manager(6): assert False except exc_manager(7): assert True except exc_manager(): assert False def test_exc_manager_sing... | False | 25 | 8 |
vkbottle/vkbottle | train | 6 | 86c6ec34827481f196c13ca7aaebb5fc26216534 | train | tests/exception_manager_test.py | train | vkbottle/vkbottle:tests/exception_manager_test.py | 30 | 8 | assert | test_swear_sync | from vkbottle import CodeErrorFactory, SingleError, swear
def test_exc_manager_code_error():
exc_manager = CodeErrorFactory()
try:
raise exc_manager(7)
except exc_manager(6):
assert False
except exc_manager(7):
assert True
except exc_manager():
assert False
def te... | isinstance(e, RuntimeError) | added | a5c9b90ab632bba6282d5b5de16419be2396ee074ee52bb8490af52a72d348a0 | assert|test_swear_sync|from vkbottle import CodeErrorFactory, SingleError, swear def test_exc_manager_code_error(): exc_manager = CodeErrorFactory() try: raise exc_manager(7) except exc_manager(6): assert False except exc_manager(7): assert True except exc_manager(): assert False def test_exc_manager_single_error(): cl... | null | null | null |
vkbottle/vkbottle | train | 7 | be6bca80092365f3846d5a4769b40a414e7c6e2c | train | tests/http_test.py | train | vkbottle/vkbottle:tests/http_test.py | 9 | 4 | assert | test_client | from vkbottle import ManySessionManager, AiohttpClient
import pytest
@pytest.mark.asyncio
async def test_client():
client = AiohttpClient()
text = await client.request_text("GET", "https://google.com")
await client.close()
assert | text | modified | 1a98a14cd2681398f91bba06e1bf760f62bf04c2860e42ea3584b8db924fbc19 | assert|test_client|from vkbottle import ManySessionManager, AiohttpClient import pytest @pytest.mark.asyncio async def test_client(): client = AiohttpClient() text = await client.request_text("GET", "https://google.com") await client.close() assert | text | 9 | 4 |
vkbottle/vkbottle | train | 7 | be6bca80092365f3846d5a4769b40a414e7c6e2c | train | tests/http_test.py | train | vkbottle/vkbottle:tests/http_test.py | 16 | 4 | assert | test_session_manager | from vkbottle import ManySessionManager, AiohttpClient
import pytest
@pytest.mark.asyncio
async def test_client():
client = AiohttpClient()
text = await client.request_text("GET", "https://google.com")
await client.close()
assert text
@pytest.mark.asyncio
async def test_session_manager():
session_... | text | modified | 47b02f1f9f198e947c29d87e9bc1a2f5fcfebeaf3d67918829c5110ae5e3dd6d | assert|test_session_manager|from vkbottle import ManySessionManager, AiohttpClient import pytest @pytest.mark.asyncio async def test_client(): client = AiohttpClient() text = await client.request_text("GET", "https://google.com") await client.close() assert text @pytest.mark.asyncio async def test_session_manager(): se... | text | 16 | 4 |
vkbottle/vkbottle | train | 8 | 1615e3944cd664de0b75848c3d21b0f4c9401dbe | train | tests/api_test.py | train | vkbottle/vkbottle:tests/api_test.py | 21 | 4 | assert | test_api_response | import pytest
from vkbottle import API
def skippable_api_test(func):
async def wrapper(api: API):
if not api.token:
return pytest.skip("TOKEN is not set as enviroment variable")
return await func(api)
return wrapper
@pytest.mark.asyncio
@skippable_api_test
async def test_api_re... | "Павел" | modified | 8cd555302b20153b48377018cd8c51919eff918d7ebc8296e93236aed20a6036 | assert|test_api_response|import pytest from vkbottle import API def skippable_api_test(func): async def wrapper(api: API): if not api.token: return pytest.skip("TOKEN is not set as enviroment variable") return await func(api) return wrapper @pytest.mark.asyncio @skippable_api_test async def test_api_response(api: API):... | "Павел" | 18 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.