Commit Graph

80 Commits

Author SHA1 Message Date
Robbe Sneyders
600ed4ed94 Format files with black 2022-06-25 23:50:52 +02:00
Christian Clauss
1012721d2d Upgrade isort==5.9.1 (#1388)
* Upgrade isort==5.9.1

* isort --thirdparty connexion,aiohttp ./tests

* isort --thirdparty aiohttp,connexion --check-only --diff .

* cd tests before running isort
2021-07-07 12:43:36 +02:00
Christian Clauss
6c4f99051d Upgrade syntax for Python >= 3.6 (#1383)
* pyupgrade --py36-plus **/*.py

* Fix indentation

* Fix indentation
2021-07-04 20:04:22 +02:00
Robbe Sneyders
fb44e6acb4 Fix import order for isort 2021-06-25 13:08:46 +02:00
Cédric Messiant
35d5294d78 Allow users to enable debug mode via environment variables (#1084) 2019-12-03 22:04:15 +01:00
Rafael Caricio
a7aec5d53c Split tests in isolated modules 2016-02-25 14:49:19 +01:00
Rafael Caricio
2fec6e9259 Leave body param validation to external lib 2016-02-25 14:49:19 +01:00
Rafael Caricio
b60646e047 Reorganizing tests 2016-02-25 14:49:19 +01:00
Rafael Caricio
9085ae5c4b Support parameters definitions in path 2016-02-16 18:41:57 +01:00
Rafael Caricio
096d9381f0 Support header params on 204 response code 2016-02-11 15:07:06 +01:00
João Santos
812ed1c759 Merge pull request #143 from rafaelcaricio/using-api-to-auth-404
Auth 404 errors option
2016-02-11 09:25:02 +01:00
Rafael Caricio
4623bd46b5 Return a problem json 2016-02-09 11:21:20 +01:00
Rafael Caricio
79a6d95813 Auth 404 errors option 2016-02-08 16:43:16 +01:00
Scott Colby
10f13ade7d Add unittests for booleans and arrays of booleans in query parameters. 2016-02-07 11:30:07 -08:00
Henning Jacobs
d90a1efdee Merge pull request #126 from jbryan/better_reference_handling
Added support for circular references and additionalProperties
2016-02-05 17:32:50 +01:00
Valentín Gutiérrez
b28cd87fe5 Added direct test cases with and w/o flask.Response 2016-02-03 14:29:55 +01:00
Rafael Caricio
cc37cfa79c #131 Fixes problem with param validation 2016-02-03 12:01:14 +01:00
Valentin Gutierrez
d126c42c6b Changed tests data dict format 2016-02-02 20:20:57 +01:00
Joshua Bryan
ef871ab195 Removed extraneous print statement 2016-02-02 12:22:20 -06:00
Valentín Gutiérrez
bf471e0ea4 Add test for missing formData parameter 2016-02-02 18:59:56 +01:00
Valentín Gutiérrez
8b6f2a17b1 Merge remote-tracking branch 'upstream/master' 2016-02-02 18:25:36 +01:00
Valentín Gutiérrez
59f7737a14 Added test for formData parameters 2016-02-02 18:14:59 +01:00
Rafael Caricio
465b52c4e1 #130 Test YAML with bool param 2016-02-02 14:35:02 +01:00
Joshua Bryan
c49ca1fe06 Added support for circular references and additionalProperties 2016-01-31 19:23:35 -06:00
hjacobs
6e3f08a8e6 add unit test for uWSGI metrics decorator 2016-01-12 21:18:13 +01:00
João Santos
c5eea220b7 Merge pull request #117 from arjunrn/master
Support for default fields in operation parameters
2016-01-12 12:55:41 +00:00
Arjun Naik
f1e89f1b3d Fixed bug with falsy default query parameters 2016-01-11 11:56:54 +01:00
Arjun Naik
da15c3c413 Parameter defaults now passed to handler functions. 2015-12-28 14:59:27 +01:00
cyprien-g
7e67011fc5 Fix invalid bool test 2015-12-28 14:09:56 +01:00
João Santos
466de9f3ae #108 Fix tests in Python 2 2015-12-11 07:59:48 +01:00
João Santos
ead3c31663 #108 Use json schema for parameters 2015-12-10 15:51:37 +01:00
João Santos
060d732bb9 #108 enable json schema format checkers 2015-12-10 11:26:29 +01:00
João Santos
a9a8805f86 #108 use jsonschema 2015-12-10 09:51:00 +01:00
Henning Jacobs
a7e42fee1e Merge pull request #107 from kleijnweb/feature/issue-98
Sensible defaults for controller resolution
2015-12-08 14:11:43 +01:00
John Kleijn
e98cbca3ea Wrap function resolver functions in Resolver objects 2015-12-06 16:07:40 +01:00
John Kleijn
5fe88cba08 Addressed overlapping method names problem and removed main module as default 2015-12-06 10:32:06 +01:00
John Kleijn
a5f1af62a7 Sensible defaults for controller resolution 2015-12-06 07:55:27 +01:00
Henning Jacobs
878fac26a8 #104 test routing for non-matching values 2015-12-05 21:01:22 +01:00
Henning Jacobs
c7a1105cc0 #104 support type casting of int/float path parameters 2015-12-05 20:55:12 +01:00
Henning Jacobs
247658fb08 #104 add test for int path parameter 2015-12-05 20:07:51 +01:00
Henning Jacobs
b1945399ec #101 test resolving of method and classmethod 2015-12-05 19:39:24 +01:00
Dan Ballance
b2952e8991 Re-factored a little to improve test coverage and also added a test for the scenario where an unsupported collectionFormat is used. 2015-11-11 15:21:39 +00:00
Dan Ballance
fc04ae80c5 Fixed an issue with query parameters not properly handling arrays 2015-11-09 10:59:42 +00:00
João Santos
0f7a3ce9a6 #85 Allow adding headers to problem responses 2015-11-05 11:20:48 +01:00
Dan Ballance
cd83633867 Spec updated to declare correct responses and response validation enabled in test_app.py 2015-11-04 12:38:52 +00:00
Dan Ballance
1389664855 Some work to validate the developer's returned response against what was declared in the swagger specification. 2015-11-01 18:15:34 +00:00
João Santos
6a855a5582 Merge pull request #77 from danballance/return-headers-from-view
Proposed technique for returning custom headers (with simple unit test)
2015-10-29 08:26:50 +01:00
Evan Lezar
8a6670b53e Add some basic unit tests to improve test coverage. 2015-10-28 18:00:03 +01:00
Dan Ballance
630a234e26 Broke test_headers into 2 for better test coverage. 2015-10-28 10:44:10 +00:00
Dan Ballance
a3df241624 Proposed technique for returning custom headers (with simple unit test) 2015-10-27 13:21:29 +00:00