Commit Graph

20 Commits

Author SHA1 Message Date
Jamie Hewland a839d9220d
Use coverage directly instead of pytest-cov (#1204)
* Use coverage directly instead of pytest-cov

* Use coverage's source_pkgs
2021-06-19 12:42:56 +01:00
Jamie Hewland b95acea973
Update CI scripts to match httpcore (#1043)
* Update CI scripts to match httpcore

* Run test suite on pushes to master

* Update scripts README

* Don't bother with flake8 extensions for now

* Remove unnecessary PYTHONPATH from build, publish

* test_routing: Use a stub app instead of ellipsis

* Add link to issue about type-checking tests
2020-09-06 12:08:07 +02:00
Jamie Hewland 436771aba5
Use isort v5 (#999) 2020-07-15 19:25:59 +02:00
Jamie Hewland a42657db52
Check isort in CI (#913)
* Check isort in CI

* Fix incorrectly sorted imports
2020-04-24 11:27:34 +02:00
Tom Christie 92dddea776
Reinstate Lifespan Middleware, for Responder (#405)
* Reinstate Lifespan Middleware, for Responder

* Ignore coverage of deprecated LifespanMiddleware
2019-02-20 14:40:34 +00:00
Tom Christie e396f079a5
Version 0.11 (#402)
* Add Mount(routes=...)

* Lifespan route instance

* Lifespan as a standard routing component

* Linting

* Linting

* Version 0.10.6

* Release notes

* Version 0.11.0

* Drop redundant import

* Drop redundant database requirements

* Include htmlcov in scripts/clean

* Drop redundant import

* Release notes

* Linting
2019-02-19 12:54:57 +00:00
Jose Eduardo 2544762512 Apply linting to setup.py (#403) 2019-02-19 11:30:33 +00:00
Tom Christie e8dff17ed4
Move to 'databases' instead of built-in DatabaseMiddleware (#390) 2019-02-14 16:01:51 +00:00
Tom Christie 3270762c16
MySQL driver support (#366)
* initial support for MySQL

* Work towards testing both MySQL and Postgres drivers

* Linting

* STARLETTE_TEST_DATABASE -> STARLETTE_TEST_DATABASES

* Parameterize the database tests

* Include the MySQL Database URL

* MySQL tests should create the database if it doesn't yet exist

* Explict port of MySQL database URL

* Debugging on Travis

* Pass 'args' as a single argument

* Fix query compilation for mysql

* Lookup record values for MySQL

* Coerce MySQL results to correct python_type

* cursor.fetchrow should be cursor.fetchone

* Fix call to cursor.fetchone()

* Fix for fetchval()

* Debugging

* Nested transaction for MySQL should use SAVEPOINTS

* Drop savepoint implementation

* Fix SAVEPOINT implementation for MySQL

* Coverage for MySQL

* Linting

* Tweak defaults for MySQL connections
2019-01-30 14:21:58 +00:00
Tom Christie 1f7d597c16 Don't force isort on tests 2019-01-25 13:00:28 +00:00
Tom Christie af105b23d5
Ignore database coverage if STARLETTE_TEST_DATABASE is unset (#319)
* Ignore database coverage if STARLETTE_TEST_DATABASE is unset

* Skip black on 3.7 :(
2019-01-14 12:39:40 +00:00
Tom Christie 0b7819b4b2
Add DatabaseMiddleware (#243)
* Add `DatabaseMiddleware`
2018-12-04 16:05:16 +00:00
Tom Christie d0755838b3 Disable deprecation warnings (triggered by third party packages) 2018-11-23 13:02:20 +00:00
Tom Christie bcf876c686
Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
Tom Christie c50460fbb9
Add final missing annotations, and enable '--disallow-untyped-defs' (#115)
* fix(dataStructures): missing annotations added

* fix(requests.py): annotations added

* fix(Annotations): wrong annotations fixed on datastructures and requests modules.

* fix(Missing annotation): missing annotations added on testclient module.

* fix(testclient): annotations fixed

* minor tweaks

* fix(testclient): Session request method fixed. WIP _ASGIAdapter send method

* fix(testclient): small tweaks

* Switch on --disallow-untyped-defs when testing with mypy
2018-10-16 15:56:28 +01:00
Tom Christie d05ef2328d
Enable mypy in tests (#110) 2018-10-15 10:13:09 +01:00
Tom Christie c43a070eed
Form parsing (#102)
* Work towards MultiPartParser

* Work towards MultiPartParser

* Add test for multipart files

* MultiPart parsing

* Fix for large multipart messages

* Add python-multipart to docs

* Add python-multipart to 'pip install starlette[full]'

* Add FormParser

* Add docs for request.form()

* Drop mypy momentarily
2018-10-12 18:15:04 +01:00
Tom Christie cc09042c1c
Enable mypy in tests (#103)
* Enable mypy in tests

* Fix TestClient annotations
2018-10-10 17:33:12 +01:00
Tom Christie 060f0593bc
Push black linting into ./scripts/test (#96)
* Push black linting into ./scripts/test Fix some annotations etc.

* Skip black on 3.7

* Fix script

* Blergh. Shell equality tests are weird

* Attempt to fix equality check
2018-10-09 12:27:27 +01:00
Tom Christie 5a9fe3f048 Initial commit 2018-06-25 14:15:32 +01:00