summaryrefslogtreecommitdiff
path: root/websocket/tests/test_websocket.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove broken websockets.org links from documentationengn33r2022-10-251-1/+1
|
* Linting improvements, improved flake8 linting CI cmdengn33r2022-02-251-15/+10
|
* fix!: `WebSocketApp.run_forever()` returning `None` after `close()` is ↵FujiApple2022-02-251-2/+4
| | | | | | | | | | | | | called (#788) * fix!: `WebSocketApp.run_forever()` returning `None` after `close()` is called BREAKING CHANGE: the return value of `WebSocketApp.run_forever()` will no longer return the (undocumented) `None` value. * fix(tests): replace the defunct `wss://stream.meetup.com/2/rsvps` with `wss://api.bitfinex.com/ws/2` in several tests * test: added two new local server tests to cover the changes in #785 * Remove newline to fix lint error
* Replace deprecated stream.meetup.com, echo.websocket.org endpoint URLsengn33r2022-02-251-2/+2
|
* Update copyright year to 2022engn33r2021-12-311-1/+1
|
* Minor test improvements for better code coverageengn33r2021-12-131-0/+1
|
* Fix SSL test errors from ssl.PROTOCOL_TLS_CLIENT changeengn33r2021-11-221-3/+2
|
* Py2->3: simplify class definition (#750)谭九鼎2021-10-201-1/+1
| | | Remove implied and redundant object class type declarations
* Improve usage of LOCAL_WS_SERVER_PORTengn33r2021-08-141-5/+5
|
* Improve unit tests with LOCAL_WS_SERVER_PORT variableengn33r2021-08-131-13/+14
|
* Fix python-socks dependency and replace echo.websocket.org in testsengn33r2021-08-111-5/+5
| | | | | | | | The recent addition of python-socks required it to be a dependency. This was mentioned in #728. Additional changes were made to prevent python-socks from becoming a required dependency for every install, so now it is only required for SOCKS proxy usage. Additionally, because echo.websockets.org was experiencing downtime issues during this fix, echo.websockets.org was replaced in unit tests with a local echo server from the Python websockets library. This should speed up tests, avoid test errors cause by external website downtime, and reduce traffic to echo.websocket.org caused by this project.
* Transition from LGPL 2.1 license to Apache 2.0 - fix #697engn33r2021-08-101-13/+11
|
* Minor code coverage unit test improvementengn33r2021-06-081-2/+9
|
* Revert exception handling from 13e83b4engn33r2021-05-211-1/+1
|
* Fix unit test for raising error in close()engn33r2021-05-171-4/+2
|
* Improve _abnf.py and _http.py test coverageengn33r2021-05-161-16/+20
|
* Add test case with sslopt settingsengn33r2021-05-151-3/+6
|
* Improve unittest code coverageengn33r2021-05-151-0/+31
|
* Minor _core.py test coverage improvementengn33r2021-05-121-1/+4
|
* Add status code examples to docs, improve unit testsengn33r2021-05-061-0/+2
|
* Remove six dependency and transition related code to Python3engn33r2021-05-051-4/+1
|
* First pass removing Python 2 code, mostly six dependencyengn33r2021-05-041-56/+37
|
* PEP8 style compliance fixesengn33r2021-05-041-3/+1
|
* Improve _core.py test coverageengn33r2021-03-291-26/+20
|
* Add unit test for PR #627engn33r2021-03-291-0/+4
|
* Improve _app.py code coverageengn33r2021-03-281-74/+0
|
* Match no proxy on domain and * (#671)Codeglitches2021-03-221-180/+0
| | | | | | | | | * Extract url test methods and classes to separate test module * Fix: Restore no_proxy environment variable after tests * Fix: is_address_in_network does not pass simple unittests * Match no_proxy on * and domains
* Replace TravisCI with GitHub Actionsengn33r2021-02-271-2/+2
|
* Replace deprecated assertEquals() with assertEqual()engn33r2021-02-271-1/+1
| | | | | | The plural 'assertEquals()' is deprecated in Python 3 and triggers a warning during CI: https://docs.python.org/3/library/unittest.html#deprecated-aliases
* Fix #526 by reverting invalid BSD license migration in commit e94ed9e to ↵engn33r2021-02-221-0/+24
| | | | return to LGPL2.1
* Merge pull request #647 from seratch/fix-build-failureengn33r2021-01-261-2/+2
|\ | | | | Fix failing TravisCI builds
| * Fix the failing tests (testIter, testNext)Kazuhiro Sera2020-11-271-2/+2
| |
* | Fix None.lower() when sec-websocket-protocol response header does not existanuragbeniwal2020-05-081-0/+2
|/ | | | Fix for https://github.com/websocket-client/websocket-client/issues/516
* Don't retry sockets with timeout set to 0Trygve Aaberge2019-03-201-0/+3
| | | | | | | | | | | | | | | | For non-blocking sockets with the timeout set to 0, the select call in _recv and _send will return immediately without the socket being ready. This causes _recv to return None, which makes recv close the connection. Since a select with a timeout of 0 right after recv/send is pointless, just skip _recv and _send when timeout is 0. As for the handling of SSLWantReadError, SSLWantWriteError, EAGAIN and EWOULDBLOCK in _recv/_send, websocket-client can't handle these without blocking. Since applications which has timeout set to 0 don't want websocket-client to block them, they have to handle those errors themselves. Fixes #535
* revert #442v0.51.0liris2018-08-191-22/+0
|
* fixed Attribute error on close appliris2018-08-141-1/+1
|
* Patch WebSocketApp class to make it inheritableAndrey Bashlakov2018-06-181-2/+24
|
* remove some test assertHiroki Ohtani2018-05-271-4/+4
|
* Added status message when HTTP can't be upgraded to WSDmitry Mottl2018-02-141-1/+1
|
* fixed #386Hiroki Ohtani2018-02-091-4/+6
|
* pass ssl testliris2017-06-231-1/+1
|
* 0.44.0v0.44.0liris2017-06-231-1/+1
|
* fixed #264liris2016-12-021-1/+1
|
* _url: Added subnet IP address matching in no_proxy host detectionMiacz2016-09-201-2/+5
|
* wsdump, test_fuzzingclient, websocket.*, test_websocket: Organise importsAllan Lewis2016-04-271-19/+18
| | | | | | | | | | | | | | Previously, because of the multiple instances of `from foo import *`, names were imported from modules that had themselves imported them, instead of from the place of definition. This commit therefore does the following: - Declares `__all__` in every module that imports anything, so that `from foo import *` is sane. - Sorts the imports based on conventions, similar to the output of `isort`. - Places all conditional imports after unconditional imports, except where that isn't valid. - Imports local names from the modules where they are defined, except when importing the package itself.
* _core, test_websocket: Remove unused localsAllan Lewis2016-04-271-7/+7
|
* test_websocket: Remove unnecessary backslashesAllan Lewis2016-04-271-3/+3
|
* test_websocket: [Cleanup] Remove unused importsAllan Lewis2016-04-271-2/+0
|
* test_websocket: [Cleanup] Correct typoAllan Lewis2016-04-271-3/+3
|
* Using os.urandom() and constant-time hash check for handshake. Fixes #209 #210Predrag Gruevski2015-09-211-4/+4
|