summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add CURLOPT_AWS_SIGV4 optionScott Talbert2023-01-301-0/+6
| | | | Fixes #785.
* Added option for CURLOPT_REQUEST_TARGETMarcel Brouwers2022-12-301-0/+6
|
* Replace use of deprecated ssl.wrap_context in tests/runwsgi.pyScott Talbert2022-12-011-3/+5
|
* Run tests verboselyScott Talbert2022-11-301-1/+1
|
* Add support for CURL_HTTP_VERSION_3Scott Talbert2022-11-301-0/+4
|
* Fix tests/building docs with newer setuptoolsScott Talbert2022-09-131-2/+3
| | | | | | In newer setuptools/distutils, the build directory has been changed from using the Python version (e.g., 3.10) to using the cache tag (e.g., cpython-38). So, support both variants by making the dot optional.
* Add CURLOPT_TLS13_CIPHERS and CURLOPT_PROXY_TLS13_CIPHERS optionsScott Talbert2022-08-031-0/+14
| | | | Fixes #766
* Add HTTP09_ALLOWED optionScott Talbert2022-07-241-0/+6
| | | | Fixes #762.
* Remove use of deprecated distutilsScott Talbert2022-06-101-35/+1
| | | | | | | | | 1) Use setuptools instead where it can replace distutils 2) Replace distutils.util.split_quoted with shlex.split 3) Remove support for bdist_msi (it's deprecated anyway) 4) Remove unused function in tests/util.py Fixes #757
* Merge pull request #755 from swt2c/win_troubleshootinScott Talbert2022-05-072-31/+30
|\ | | | | Fix CA tests with curl 7.82
| * Update test SSL certs to include Subject Alternative NameScott Talbert2022-05-062-31/+30
| | | | | | | | This fixes issues when testing with curl 7.82.
* | tests: fix error message on error_test (for curl >= 7.83)Samuel Henrique2022-04-301-3/+5
|/ | | | | | curl 7.83.0 removed exclamation marks from a few error messages, curl commit: https://github.com/curl/curl/commit/6968fb9d54dc3a1aaa1b16088f038eaf5dd8b2d7 This commit adds support for the new curl release while also supporting the previous ones.
* tests: xfail additional multi callback tests on macOSScott Talbert2022-03-111-0/+3
|
* Merge pull request #731 from fsbs/multi-callback-testOleg Pudeyev2022-03-091-38/+26
|\ | | | | [WIP] Improve multi_callback_test
| * Improve multi_callback_testfsbs2022-02-111-38/+26
| |
* | Merge pull request #726 from swt2c/ci_windowsOleg Pudeyev2022-03-094-4/+10
|\ \ | | | | | | Add CI for Windows
| * | tests: fix test_post_file on WindowsScott Talbert2022-01-221-1/+1
| | |
| * | tests: handle file:// URLs with spaces in pathsScott Talbert2022-01-223-3/+9
| |/
* | tests: xfail test_easy_pause_unpause on macOSScott Talbert2022-01-261-0/+3
|/ | | | Failure is documented at: https://github.com/pycurl/pycurl/issues/729
* Merge pull request #714 from fsbs/add-easy-duphandleOleg Pudeyev2022-01-112-1/+146
|\ | | | | easy.duphandle()
| * duphandle_test: improve and add more testsfsbs2021-11-051-53/+103
| | | | | | | | | | * Test different sequences of duphandle(), reset(), unsetopt(), setopt() * Test references with Python's gc and weakref modules
| * bottle test app: fix /header_utf and /postfieldsfsbs2021-11-051-1/+2
| | | | | | | | | | | | | | | | * /header_utf8: don't fail if request header wasn't sent, return '' * /postfields: allow GET requests This makes it possible to test unsetopt() and reset() for HTTPHEADER and HTTPPOST options.
| * duphandle: add testsfsbs2021-11-031-0/+94
| |
* | Merge pull request #713 from fsbs/fix-unsetting-multi-optsOleg Pudeyev2022-01-111-0/+17
|\ \ | | | | | | Fix unsetting multi options
| * | Update multi_option_constants_test.pyfsbs2021-10-271-0/+17
| |/ | | | | | | | | * set callback options * unset options with None
* | Merge pull request #711 from fsbs/add-subclass-supportOleg Pudeyev2022-01-111-0/+88
|\ \ | | | | | | Subclass support
| * | Add tests for subclass supportfsbs2021-10-211-0/+88
| |/
* | Merge pull request #708 from fsbs/patch-allow-threadsOleg Pudeyev2022-01-111-0/+106
|\ \ | | | | | | Fix multi callback issues: easy.pause(), easy.close(), multi.close()
| * | Add SOCKETFUNCTION and TIMERFUNCTION testsfsbs2021-10-201-0/+106
| |/ | | | | | | | | | | | | | | | | | | | | Tests invocation of callbacks by the following methods: * multi.socket_action(...) * multi.add_handle(easy) * [mid-transfer] multi.remove_handle(easy) * [mid-transfer] easy.pause(PAUSE_ALL) * [mid-transfer] easy.pause(PAUSE_CONT) * [mid-transfer] easy.close()
* | Add support for SecureTransport SSL backendScott Talbert2021-09-103-5/+13
|/ | | | This allows pycurl to be compiled with the curl that is shipped with macOS.
* Fix warnings when running testsScott Talbert2021-08-174-8/+9
|
* add head method to high-level interface, closes #547Oleg Pudeyev2021-07-201-0/+9
|
* pacify linterOleg Pudeyev2021-07-191-1/+0
|
* adjust tests for current bottleOleg Pudeyev2021-07-191-12/+11
| | | | | | see https://github.com/bottlepy/bottle/issues/1148 closes #669
* Remove remaining nose referenceOleg Pudeyev2021-07-191-3/+1
|
* Merge branch 'master' into pr-655Oleg Pudeyev2021-07-174-2/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Depend on o-nose-show-skipped to get unreleased fixes i nose-show-skipped Best effort python 2 support. See #652 failonerror_test: skip the test with curl-7.75.0+ option_constants_test: skip check of SSLVERSION_SSLv* curl_version_info_struct lags behind curl #662 Allow to get CURLINFO_CONDITION_UNMET Remove bintray from docs docs: fix typos docs(quickstart): only show Python 3 code Expose MAX_CONCURRENT_STREAMS in CurlMulti src/module.c: make the code compile against python-3.10.0a1 Build documentation using specified Python version Use make -C for building fake-curl
| * failonerror_test: skip the test with curl-7.75.0+Kamil Dudka2021-06-011-0/+6
| | | | | | | | | | | | | | | | | | libcurl does not provide the reason phrase from HTTP status line in the error buffer any more: https://github.com/curl/curl/issues/6615 Fixes: https://github.com/pycurl/pycurl/issues/679
| * option_constants_test: skip check of SSLVERSION_SSLv*Kamil Dudka2021-06-012-1/+23
| | | | | | | | | | | | | | | | | | ... with curl-7.77.0, where they started to return CURLE_BAD_FUNCTION_ARGUMENT: https://github.com/curl/curl/pull/6773 Closes: https://github.com/pycurl/pycurl/pull/689
| * Use make -C for building fake-curlSteve Kowalik2020-09-161-1/+1
| | | | | | | | | | | | Both the Makefile and the Travis setup use a subshell with cd to build fake-curl, whereas make everywhere supports -C, so make use of that instead.
* | Use self.assertIn() rather than self.assertTrue(in)Steve Kowalik2020-09-162-2/+2
| | | | | | | | | | Python 3.1 added more assert methods to unittest for ease of use, swith to using assertIn() for ease of debugging failures.
* | Switch from nose to pytestSteve Kowalik2020-09-1417-104/+80
|/ | | | | With nose being unmaintained for a long while, switch to pytest to run the test suite.
* Regenerate test certificates with sha256 signaturesScott Talbert2020-08-132-40/+41
| | | | | | | | | | | | | | | | | Fixes this issue with OpenSSL 1.1.0: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/<<PKGBUILDDIR>>/tests/runwsgi.py", line 67, in run bottle.run(self.app, server=self.server, quiet=True) File "/usr/lib/python3/dist-packages/bottle.py", line 3129, in run server.run(app) File "/<<PKGBUILDDIR>>/tests/runwsgi.py", line 38, in run self.srv.socket = ssl.wrap_socket( File "/usr/lib/python3.8/ssl.py", line 1402, in wrap_socket context.load_cert_chain(certfile, keyfile) ssl.SSLError: [SSL: CA_MD_TOO_WEAK] ca md too weak (_ssl.c:4022)
* Add a 'clean' target for fake-curlMichał Górny2020-05-111-1/+5
|
* Support overriding CC, respect *FLAGS in fake-curlMichał Górny2020-05-111-1/+4
| | | | | | | | The shipped libraries (obviously) do not work on non-amd64 platforms, and rebuilding without the correct compiler and flags does not work on more complex setups such as ppc64 with 32-bit userland. Make the Makefile permit CC override while preserving the current default, and use user-provided CFLAGS, CPPFLAGS and LDFLAGS.
* Skip telnet tests when cURL is built without telnet supportMichał Górny2020-05-042-0/+15
|
* Do not pyflakes winbuild due to star importsOleg Pudeyev2020-01-291-1/+1
|
* Update build configurationsOleg Pudeyev2020-01-141-5/+5
|
* Fix ftp tests in CIOleg Pudeyev2020-01-141-2/+4
|
* Merge pull request #581 from p-push/engines-testOleg Pudeyev2019-07-041-0/+19
|\ | | | | Test SSL_ENGINES option.
| * Test SSL_ENGINES option.Oleg Pudeyev2019-07-041-0/+19
| | | | | | | | Closes #558