summaryrefslogtreecommitdiff
path: root/tests/test_async.py
Commit message (Collapse)AuthorAgeFilesLines
* Add make_resolver_at() and resolve_at(). (#926)Bob Halley2023-04-191-0/+22
|
* Better DNS-over-HTTPS support. (#908)Bob Halley2023-03-191-3/+18
| | | | | | | | | | | | This change: Allows resolution hostnames in URLs using dnspython's resolver or via a bootstrap address, without rewriting URLs. Adds full support for source addresses and ports to httpx, except for asyncio I/O where only the source address can be specified. Removes support for requests.
* Remove curio support.Bob Halley2023-03-121-47/+4
|
* Add dns.resolver.resolve_name(). (#903)Brian Wellington2023-03-101-0/+42
| | | | | | | | | | | | | * Add dns.resolver.resolve_name(). * Add missing type annotations. * Add async resolve_name(). * Replace List[Answer] with HostAnswers. * Switch addresses_and_families() tuple order * Fix comment.
* Asyncio sockets should work after a timeout [#843].Bob Halley2022-10-061-0/+46
|
* give up on curio tests on windowsBob Halley2022-06-111-0/+3
|
* attempt to workaround curio exceptions that happen only in CIBob Halley2022-06-111-3/+6
|
* apply v4/v6 testing scheme from query tests to async tooBob Halley2022-06-101-13/+4
|
* Add tests.util.is_internet_reachable()Benjamin Drung2022-05-161-11/+2
| | | | | | Introduce `tests.util.is_internet_reachable` to avoid duplicate code. Signed-off-by: Benjamin Drung <bdrung@ubuntu.com>
* black autoformattingBob Halley2022-03-151-128/+203
|
* Remove 3.6-specific code.Bob Halley2022-03-051-18/+2
| | | | | We still have to add AsyncExitStacks, and this requires making the associated socket wrappers async context managers.
* skip async DoH tests if no httpxBob Halley2021-12-211-1/+5
|
* basic testing for async DoHBob Halley2021-11-271-1/+58
|
* Validate resolver nameservers when set [Issue #699].Bob Halley2021-10-241-8/+0
|
* Try to skip dangling CNAME tests if systemd-resolved is running. [Issue #658]Bob Halley2021-06-111-0/+12
|
* asyncio on Windows requries connected sockets. [Issue #637]windows_asyncio_fixBob Halley2021-02-251-1/+13
|
* First pass at adding network timeouts to tests. This is for whenBob Halley2020-10-091-10/+15
| | | | | it looks like we have a network but it's not connected to the Internet.
* Add canonical_name() to async resolver too.Bob Halley2020-07-201-0/+20
|
* Add coverage for TCP/TLS async getsockname.Brian Wellington2020-07-081-0/+4
|
* Add support for receiving UDP queries.Brian Wellington2020-07-081-0/+19
| | | | | | | | | | | | | | The existing receive_udp() methods are only usable for receiving responses, as they require an expected destination and check that the message is from that destination. This change makes the expected destination (and hence the check) optional, and returns the address that the message was received from (in the sync case, this is only done if no destination is provided, for backwards compatibility). New tests are added, which required adding generic getsockname() support to the async backends.
* Don't read resolv.conf in tests that don't use it.Brian Wellington2020-07-081-1/+1
|
* bind our UDP socketBob Halley2020-06-191-1/+2
|
* more coverage improvementsBob Halley2020-06-191-1/+3
|
* improve async coverageBob Halley2020-06-191-0/+22
|
* improve async coverageBob Halley2020-06-171-0/+119
|
* test IPv4 and IPv6 according to availabilityBob Halley2020-06-151-91/+116
|
* Add some comments about opportunities after 3.6 is not supported.Bob Halley2020-06-131-0/+1
|
* Re-enable TLS async tests.Bob Halley2020-06-121-27/+45
|
* Attempt to cope with python 3.6 asyncio.Bob Halley2020-06-111-1/+8
|
* Support trio, curio, and asyncio with one API!Bob Halley2020-06-111-0/+219