Commit Graph

30 Commits

Author SHA1 Message Date
Luna df0a77002e tests: remove unecessary reader task 2022-01-29 18:26:05 -03:00
Luna 2180fbca02 tests: remove unecessary asyncio event
queue's get() already blocks if no items are in the queue.
2022-01-28 23:52:46 -03:00
Luna 4a70d9580d tests: don't double-close on test_broken_identify 2022-01-28 23:38:33 -03:00
Luna 049523b03f tests: assert we are in a good state on autoreply 2022-01-28 23:38:12 -03:00
Luna 38b560205f tests: use an internal queue for wsproto events 2022-01-28 23:25:39 -03:00
Luna 28299607cd tests: send correct protocol reply on close event 2022-01-28 00:28:38 -03:00
Luna 94e1f16be5 remove unused import 2022-01-28 00:24:58 -03:00
Luna 9b98257741 tests: reply with correct Pong event 2022-01-28 00:24:24 -03:00
Luna 0faae9fafd tests: add websockets->wsproto translation layer
see #139
2022-01-28 00:00:45 -03:00
Luna c85f0806c7 test_websocket: add test for zlib stream 2022-01-25 23:47:33 -03:00
Luna d77a84be97 handle bot gateway connections
close #134
2021-11-01 22:15:48 -03:00
Cynthia Foxwell f162f0ab60 Update license headers 2021-09-24 11:33:06 -06:00
Luna b650414bb9 add READY_SUPPLEMENTAL support 2021-08-28 19:56:44 -03:00
Luna 9a09311c68 change ready.relationships structure on gateway v9 2021-08-28 18:12:33 -03:00
Luna e5f8fe7243 add test for gateway message validation error 2021-06-30 18:42:20 -03:00
Luna 323013cb87 Add test to ensure a removed state invalidates WS 2020-04-05 15:08:46 -03:00
Luna 8e6bbdbe19 Add test for session resumption 2020-04-05 14:46:39 -03:00
Luna 83a1c1ae29 black fmt pass 2019-10-25 07:27:50 -03:00
Luna 74c03f7dfa fix tests 2019-07-21 12:58:51 -03:00
Luna 30902d6e8f update many tests to the new TestClient fixture 2019-07-21 12:51:40 -03:00
Luna 268b921961 gateway.websocket: add shards field to ready
see https://github.com/discordapp/discord-api-docs/pull/826
2019-05-05 17:15:53 -03:00
Luna 0631f007c1 test_websocket: add test for etf
- embed.sanitizer: remove unused import
2019-04-25 22:44:34 -03:00
Luna 0e57ad9633 test_websocket: use _close on test_ready 2019-03-26 23:50:10 -03:00
Luna 07c66d121a test_websocket: add a _close helper 2019-03-26 23:47:52 -03:00
Luna 9e1db1f9b4 test_gateway: add test_heartbeat
- tests.conftest: hardcode IS_SSL to False
2019-03-26 01:02:06 -03:00
Luna 53d7515f8c all: update copyright year 2019-01-26 19:25:46 -03:00
Luna 2632d033fa all: add GPL header 2018-12-07 02:14:58 -03:00
Luna Mendes a7f8852324 test.test_websocket: add test_ready_fields
- RatelimitManager: add a test flag to overwrite _ws.connect ratelimit
2018-11-17 04:09:22 -03:00
Luna Mendes 77c52a5c28 tests.test_websocket: add test_ready 2018-11-17 03:05:54 -03:00
Luna Mendes 069c39d29e tests: add test_websocket.py
- tests.conftest: alter WEBSOCKET_URL as well
2018-11-17 02:51:07 -03:00