David Bordeynik
1b324ae981
fix-#1856: adjust websockets version to setup.py and make nightly (py39) tests pass ( #1857 )
...
* fix-#1856: adjust websockets version to setup.py and make nightly (py39) tests pass
* fix-#1856: set min websockets version to 8.1
* fix-#1856: suppress timeout for CI to pass
* fix-#1856: timeout -> close_timeout due to deprecation warning
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
Co-authored-by: 7 <yunxu1992@gmail.com>
2020-06-28 08:43:12 +03:00
Jacob
638322d905
docs: Fix doc build ( #1833 )
...
* docs: Fix doc build
* docs: Use python-3.8 instead
* test: Remove pytest-asyncio form tox.ini
2020-04-24 14:13:35 -07:00
L. Kärkkäinen
48800e657f
Deprecation and test cleanup ( #1818 )
...
* Remove remove_route, deprecated in 19.6.
* No need for py35 compat anymore.
* Rewrite asyncio.coroutines with async/await.
* Remove deprecated request.raw_args.
* response.text() takes str only: avoid deprecation warning in all but one test.
* Remove unused import.
* Revert unnecessary deprecation warning.
* Remove apparently unnecessary py38 compat.
* Avoid asyncio.Task.all_tasks deprecation warning.
* Avoid warning on a test that tests deprecated response.text(int).
* Add pytest-asyncio to tox deps.
* Run the coroutine returned by AsyncioServer.close.
Co-authored-by: L. Kärkkäinen <tronic@users.noreply.github.com>
2020-03-28 11:43:14 -07:00
Subham Roy
ce71514d71
bump httpx dependency version to 0.11.1 ( #1794 )
2020-03-01 11:42:11 -08:00
Adam Hopkins
258dbee3b9
Py38 tox env ( #1752 )
...
* Set version
Set version
* Add Python 3.8 to tests and package classifiers
Add Python3.8 to Appveyor config
2020-02-05 13:17:55 -06:00
Eli Uriegas
2b5f8d20de
ci: Add python nightlies to test matrix ( #1710 )
...
Signed-off-by: Eli Uriegas <seemethere101@gmail.com>
2019-12-25 16:50:31 -08:00
Adam Hopkins
3f6a978328
Swap out requests-async for httpx ( #1728 )
...
* Begin swap of requests-async for httpx
* Finalize httpx adoption and resolve tests
Resolve linting and formatting
* Remove documentation references to requests-async in favor of httpx
2019-12-20 19:23:52 -08:00
Yun Xu
01be691936
misc: bump up pytest version for fixing ci build
2019-10-07 11:41:44 -07:00
Vinícius Dantas
6fc3381229
Add a type checking pipeline ( #1682 )
...
* Integrate with mypy
2019-09-22 13:55:36 -07:00
7
3f9c94ba4a
Merge pull request #1635 from huge-success/upgrade-websockets
...
Upgrade websockets, resolve incompatible issue between multidict and websockets
2019-08-12 10:48:56 -07:00
Yun Xu
b397637bb9
bugfix: fix incompatible api between multidict and websockets, and bump up websockets version to match uvicorn
2019-07-18 19:57:17 -07:00
Harsha Narayana
a019ff61e3
fix : #1631 : linter fix and tox platform selector
...
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
2019-07-13 21:48:26 +05:30
Harsha Narayana
b3ada6308b
fix : #1631 : add doc test for travis CI
...
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
2019-07-13 21:48:16 +05:30
Harsha Narayana
4e50295bf0
fix : #1631 : add tox test support for documentation
...
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
2019-07-13 21:48:06 +05:30
Adam Hopkins
a2666a2b8a
Add custom request support to ASGI mode; fix a couple tests
...
Undo change to request stream test
2019-06-24 22:59:23 +03:00
Christo Goosen
78fe97b9cb
Add bandit code static analyzer for security, some false positives removed with #nosec.
...
Bandit is a python package for staticly scanning code for security issues.
* Added to tox.ini
* Added to setup.py
* Added to .travis.yml
As part of CI/CD pipeline
2019-06-24 09:53:29 +02:00
Adam Hopkins
b1c23fdbaa
Increase testing coverage for ASGI
...
Beautify
Specify websockets version
2019-06-19 00:38:58 +03:00
Yun Xu
3661afa461
bump request-async version for fixing build time issue
2019-05-16 08:56:25 -07:00
Adam Hopkins
ccd4c9615c
Create requests-async based TestClient, remove aiohttp dependency, drop Python 3.5
...
Update all tests to be compatible with requests-async
Cleanup testing client changes with black and isort
Remove Python 3.5 and other meta doc cleanup
rename pyproject and fix pep517 error
Add black config to tox.ini
Cleanup tests and remove aiohttp
tox.ini change for easier development commands
Remove aiohttp from changelog and requirements
Cleanup imports and Makefile
2019-04-30 15:26:06 +03:00
Harsha Narayana
34fe26e51b
Add Route Resolution Benchmarking to Unit Test ( #1499 )
...
* feat: add benchmark tester for route resolution and cleanup test warnings
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
* feat: refactor sanic benchmark test util into fixtures
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
2019-02-28 08:56:41 -06:00
7
8dd8e9916e
upgrade pytest version that compatible with pytest-cov, fixes some caplog unit tests ( #1464 )
2019-01-08 09:15:23 -06:00
Harsha Narayana
aa0874b6d8
100% Coverage for Sanic Blueprint ( #1419 )
...
* add unit tests to completely cover blueprints
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
* fix typo in the unit test code
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
2018-11-25 13:56:34 -06:00
Yun Xu
8ef7bf8e7b
integrate with isort
2018-10-17 21:20:16 -07:00
Yun Xu
272f6e195d
added black for lint check
2018-10-13 18:10:43 -07:00
7
f9b29fd7e7
py37 ( #1256 )
...
* add py37 to travisci
* use dist:xenial for py37
* sudo: true in .travici
* bump websockets version for py37 support and fix unit tests
2018-07-03 22:07:08 -07:00
7
baa689ad43
Fix failed build and add websockets version specifier ( #1239 )
...
* add websockets version constraint
* fix failed build
2018-06-07 10:07:26 -07:00
Yun Xu
d42cb7ddb3
fix hang build
2018-03-15 21:28:52 -07:00
Yun Xu
d55e453bd5
cleaning up
2018-02-27 20:26:49 -08:00
Yun Xu
46ed2c5270
upgrade aiohttp for test_client
2018-02-26 22:08:05 -08:00
manisenkov
f23c3da4ff
Pin pytest version to 3.3.2
2018-01-31 22:58:48 +01:00
Jeong YunWon
a8827a5d95
Boost test speed by pytest-xdist
2018-01-03 18:52:25 +09:00
Yun Xu
756bd19181
do not fail if no files for coverage combine
2017-08-10 08:39:02 -07:00
Yun Xu
fbb2344895
fix cov report
2017-08-10 07:55:38 -07:00
Yun Xu
80f27b1db9
add unit tests and make flake8 happy
2017-08-08 22:21:40 -07:00
Yun Xu
47e761bbe2
add coverage report
2017-06-11 08:49:35 -07:00
messense
3eed81c1eb
Add a simple integration test for Gunicorn worker
2017-05-23 11:04:27 +08:00
messense
ec857d1c53
Drop tox-travis
2017-05-17 12:21:56 +08:00
messense
66fcb0cc8f
Add py3*-no-ext test env
2017-05-15 10:10:50 +08:00
Thomas Grainger
9d2e32902d
check readme in travis
2017-05-02 10:17:24 +01:00
Eli Uriegas
1ef69adc6f
Simplify this as well, it replicated effort
2017-03-28 22:51:23 -05:00
Miguel Grinberg
1d6e11ca10
addressed feedback
2017-02-27 22:35:28 -08:00
Eli Uriegas
a73379495f
Fix coverage build
...
Moved `sanic.py` to `app.py` this change reflects that
2017-02-17 07:06:57 -06:00
Raphael Deem
4fa568ce8a
add coverage to tox
2017-02-15 15:20:43 -08:00
Brian Bates
82f383b64f
Add missing dependency
...
Added missing `aiofiles` to tox.ini and cleaned up requirements files.
2017-02-05 11:44:01 -08:00
Eli Uriegas
487e3352e4
Revert "fix async run, add tests"
...
This reverts commit 41da793b5a
.
2017-01-31 07:30:17 -06:00
Raphael Deem
41da793b5a
fix async run, add tests
2017-01-29 23:47:47 -08:00
Suby Raman
6e53fa03f5
add beautifulsoup4 to tox
2017-01-12 20:03:35 -05:00
Eli Uriegas
1557854755
Update to make flake8 actually work
2016-12-25 19:05:11 -08:00
Eli Uriegas
56d6c2a929
Change travis job to use tox
2016-12-25 18:55:25 -08:00
Eli Uriegas
74f305cfb7
Adds python36 to tox.ini and .travis.yml
2016-12-24 14:06:53 -08:00