MCPcopy Create free account

hub / github.com/aio-libs/yarl / functions

Functions989 in github.com/aio-libs/yarl

Functiontest_join_query_string
Test that query strings are correctly joined.
tests/test_url.py:2595
Functiontest_join_query_string_with_special_chars
Test url joining when the query string has non-ascii params.
tests/test_url.py:2608
Functiontest_joinpath
(base: str, to_join: tuple[str, ...], expected: str)
tests/test_url.py:1307
Functiontest_joinpath_backtrack_to_base
()
tests/test_url.py:1347
Methodtest_joinpath_does_not_introduce_scheme
joinpath() onto a relative base must not materialize a host.
tests/test_url_parsing.py:873
Functiontest_joinpath_edgecases
(to_join: tuple[str, ...], expected: str)
tests/test_url.py:1439
Functiontest_joinpath_empty_segments
(base: str, to_join: str, expected: str)
tests/test_url.py:1339
Functiontest_joinpath_encoding
( url: str, to_join: tuple[str, ...], encoded: bool, e_path: str, e_raw_path: str, e_p
tests/test_url.py:1416
Functiontest_joinpath_path_starting_from_slash_is_forbidden
()
tests/test_url.py:1444
Functiontest_joinpath_relative
( url: URL, to_join: tuple[str, ...], expected: tuple[str, ...] )
tests/test_url.py:1375
Functiontest_joinpath_single_empty_segments
joining standalone empty segments does not create empty segments
tests/test_url.py:1355
Functiontest_json_roundtrip_json
()
tests/test_pydantic.py:49
Functiontest_le_eq
()
tests/test_url_cmp_and_hash.py:32
Functiontest_le_less
()
tests/test_url_cmp_and_hash.py:25
Functiontest_le_not_implemented
()
tests/test_url_cmp_and_hash.py:39
Methodtest_legitimate_scheme_not_affected
Legitimate URLs with real schemes must not be affected.
tests/test_url_parsing.py:754
Functiontest_localhost
()
tests/test_url.py:260
Functiontest_long_query
(benchmark: "BenchmarkFixture")
tests/test_quoting_benchmarks.py:64
Functiontest_long_query_with_pct
(benchmark: "BenchmarkFixture")
tests/test_quoting_benchmarks.py:71
Functiontest_lowercase
()
tests/test_url.py:315
Functiontest_lowercase_nonascii
()
tests/test_url.py:322
Functiontest_lowercase_scheme
()
tests/test_url.py:2206
Functiontest_lt
()
tests/test_url_cmp_and_hash.py:45
Functiontest_lt_not_implemented
()
tests/test_url_cmp_and_hash.py:52
Functiontest_malformed_bracketed_host_in_authority
Reject malformed brackets via URL.build(authority=...) path.
tests/test_url.py:460
Functiontest_malformed_bracketed_host_rejected
Reject URLs with multiple brackets to prevent host confusion (SSRF).
tests/test_url.py:454
Functiontest_matches_parse_qsl
(query_string: str)
tests/test_query_to_pairs.py:61
Functiontest_matches_parse_qsl_encoding
(query_string: str, encoding: str)
tests/test_query_to_pairs.py:69
Functiontest_max_fields_empty_query_string
()
tests/test_query_to_pairs.py:126
Functiontest_max_fields_exceeded
(query_string: str, max_fields: int)
tests/test_query_to_pairs.py:119
Functiontest_max_fields_none_is_unlimited
()
tests/test_query_to_pairs.py:131
Functiontest_max_fields_not_exceeded
(query_string: str, max_fields: int)
tests/test_query_to_pairs.py:102
Functiontest_name_for_empty_url
()
tests/test_url.py:922
Functiontest_name_non_ascii
()
tests/test_url.py:962
Functiontest_ne_str
()
tests/test_url_cmp_and_hash.py:6
Functiontest_never_quote
(quoter: type[_Quoter])
tests/test_quoting.py:165
Methodtest_no_host
(self)
tests/test_url_parsing.py:207
Methodtest_no_path
(self)
tests/test_url_parsing.py:198
Functiontest_no_scheme
()
tests/test_url.py:2036
Methodtest_no_scheme1
(self)
tests/test_url_parsing.py:41
Functiontest_no_scheme2
()
tests/test_url.py:2043
Methodtest_no_scheme2
(self)
tests/test_url_parsing.py:49
Methodtest_no_scheme_no_host
(self)
tests/test_url_parsing.py:155
Functiontest_no_user
()
tests/test_url.py:149
Methodtest_no_user
(self)
tests/test_url_parsing.py:263
Methodtest_non_alpha_start_pct_encoded_does_not_materialize_scheme
split_url() accepts any scheme_chars in the first position, not just ALPHA, so digit / "+" / "-" / "." starts must also be guarded against
tests/test_url_parsing.py:797
Functiontest_nonascii_in_qs
()
tests/test_url.py:1092
Functiontest_none_value_for_query
()
tests/test_url.py:2260
Functiontest_normalize_path
(original: str, expected: str)
tests/test_normalize_path.py:35
Methodtest_not_a_scheme1
(self)
tests/test_url_parsing.py:57
Methodtest_not_a_scheme2
(self)
tests/test_url_parsing.py:65
Functiontest_origin
()
tests/test_url.py:74
Functiontest_origin_ipv6
()
tests/test_url.py:94
Functiontest_origin_is_equal_to_self
()
tests/test_url.py:79
Functiontest_origin_no_scheme
()
tests/test_url.py:105
Functiontest_origin_nonascii
()
tests/test_url.py:89
Functiontest_origin_not_absolute_url
()
tests/test_url.py:99
Functiontest_origin_with_no_auth
()
tests/test_url.py:84
Functiontest_parent_for_absolute_url
()
tests/test_url.py:2244
Functiontest_parent_for_empty_url
()
tests/test_url.py:2216
Functiontest_parent_for_no_netloc_url
()
tests/test_url.py:2233
Functiontest_parent_for_relative_url
()
tests/test_url.py:2227
Functiontest_parent_for_relative_url_with_child
()
tests/test_url.py:2221
Functiontest_parent_for_top_level_absolute_url
()
tests/test_url.py:2249
Functiontest_parent_for_top_level_no_netloc_url
()
tests/test_url.py:2238
Methodtest_parent_of_scheme_shaped_relative
parent derives from an already-encoded path and stays relative.
tests/test_url_parsing.py:946
Functiontest_parent_raw_parts
()
tests/test_url.py:1115
Functiontest_parent_raw_path
()
tests/test_url.py:1110
Functiontest_parse_query_uncached
Test parsing the query string without the cache.
tests/test_url_benchmarks.py:834
Functiontest_parsing_populates_cache
Test that parsing a URL populates the cache.
tests/test_url.py:2630
Functiontest_parsing_populates_cache_for_single_dot
Test that parsing a URL populates the cache for a single dot path.
tests/test_url.py:2676
Functiontest_parts_for_empty_url
()
tests/test_url.py:903
Functiontest_parts_non_ascii
()
tests/test_url.py:917
Functiontest_password_non_ascii
()
tests/test_url.py:171
Functiontest_password_without_user
()
tests/test_url.py:176
Methodtest_path
(self)
tests/test_url_parsing.py:523
Methodtest_path_empty_frag
(self)
tests/test_url_parsing.py:563
Functiontest_path_non_ascii
()
tests/test_url.py:706
Methodtest_path_only
(self)
tests/test_url_parsing.py:463
Functiontest_path_qs
()
tests/test_url.py:798
Functiontest_path_safe
Test accessing path safe.
tests/test_url_benchmarks.py:757
Functiontest_path_safe_only_round_trips
Path safe can round trip with documented decode method.
tests/test_url.py:762
Functiontest_path_safe_uncached
Test accessing path safe without cache.
tests/test_url_benchmarks.py:766
Functiontest_path_safe_unquoter_encoded_delims
(benchmark: "BenchmarkFixture")
tests/test_quoting_benchmarks.py:162
Functiontest_path_safe_unquoter_long_pct
(benchmark: "BenchmarkFixture")
tests/test_quoting_benchmarks.py:155
Functiontest_path_safe_with_25
Path safe should not decode %25, otherwise it is prone to double unquoting.
tests/test_url.py:733
Functiontest_path_safe_with_2F
Path safe should not decode %2F, otherwise it may look like a path separator.
tests/test_url.py:726
Functiontest_path_safe_with_no_netloc
Path safe should not decode %2F, otherwise it may look like a path separator.
tests/test_url.py:742
Functiontest_path_with_2F
Path should decode %2F.
tests/test_url.py:719
Functiontest_path_with_spaces
()
tests/test_url.py:711
Functiontest_percent_encoded_in_qs
()
tests/test_url.py:1098
Functiontest_pickle
()
tests/test_pickle.py:9
Functiontest_pickle_does_not_pollute_cache
Verify the unpickling does not pollute the cache. Since unpickle will call URL.__new__ with default args, we need to make sure that default a
tests/test_pickle.py:35
Functiontest_pickle_getstate_returns_plain_tuple
Regression test for gh-1632. Python 3.15 added a ``SplitResult.__getstate__`` that touches instance attributes set by ``__init__``. yarl prev
tests/test_pickle.py:81
Functiontest_pickle_legacy_splitresult_state
Pickles produced by older yarl releases embedded a ``SplitResult``. Loading such bytes must still rebuild the URL so users upgrading from pre
tests/test_pickle.py:64
Functiontest_plus_in_path
()
tests/test_url.py:1087
Functiontest_port_for_explicit_port
()
tests/test_url.py:637
Functiontest_port_for_implicit_port
()
tests/test_url.py:643
Functiontest_port_for_relative_url
()
tests/test_url.py:649
Functiontest_port_for_unknown_scheme
()
tests/test_url.py:655
← previousnext →401–500 of 989, ranked by callers