Commit Graph

36 Commits

Author SHA1 Message Date
Jens Finkhaeuser
74cec244b4 Fixes after running & fixing TOXENV=isort-check tox 2016-09-13 16:24:28 +02:00
Jens Finkhaeuser
6476c033d2 Fix isort errors 2016-09-13 16:03:57 +02:00
Jens Finkhaeuser
ecd7d3ab6c Fix tests after merge 2016-09-13 15:52:02 +02:00
Jens Finkhaeuser
9d4a40ee38 Merge branch 'fix-missing-operation-id' into bad-operation-id-to-5xx
See #274 for discussion.
2016-09-13 15:37:23 +02:00
Jens Finkhaeuser
62f29c6256 Fix tests: in non-debug mode, original errors will be raised, which is
an ImportError in this case.
2016-09-13 15:27:23 +02:00
Rafael Caricio
0bebd0e643 Split swagger spec for consistent testing 2016-09-13 15:03:40 +02:00
Rafael Caricio
ccce2f85fe Pass along exceptions related to user mistakes 2016-09-13 12:00:41 +02:00
Rafael Caricio
3f33a54ec3 Fix tests path from fixtures 2016-09-13 11:46:59 +02:00
Jens Finkhaeuser
328aa51f6c Fix isort errors. Some of these look like they're not from my branch to
begin with.
2016-09-12 13:56:29 +02:00
Jens Finkhaeuser
37154d3b9a Makes sure #250 is still working. This explicitly handles ImportError
and re-raises its exception information if exceptions relating to
name resolution are raised at all.
It still converts the meaningless ValueError and AttributeError into a
ResolverError.
2016-09-09 11:53:16 +02:00
Jens Finkhaeuser
1e786d9538 If a ResolverError is raised during the addition of operations, and a
resolver_error_handler is provided, try to add that as an operation with
a randomized endpoint name. Otherwise, behave as before.
2016-09-09 11:52:05 +02:00
Jens Finkhaeuser
8c556543a9 Move ResolverError over to exceptions where it seems to be long. 2016-09-09 11:52:05 +02:00
Jens Finkhaeuser
92f51eab2a Improve Api test cases 2016-09-09 11:52:05 +02:00
Jens Finkhaeuser
875efbf258 Obviously, ImportError no longer falls through. That should have been
part of the PR earlier.
2016-09-09 11:52:05 +02:00
Jens Finkhaeuser
ad0a908691 Add test cases for missing and bad operationIds - slightly different from
the module with error case, but the result should be the same.
2016-09-09 11:52:05 +02:00
Jens Finkhaeuser
6697dc334f Makes sure #250 is still working. This explicitly handles ImportError
and re-raises its exception information if exceptions relating to
name resolution are raised at all.
It still converts the meaningless ValueError and AttributeError into a
ResolverError.
2016-09-07 15:16:59 +02:00
Jens Finkhaeuser
255e419572 Move ResolverError over to exceptions where it seems to be long. 2016-09-07 13:08:04 +02:00
Jens Finkhaeuser
c6cc024b1e Improve Api test cases 2016-09-07 12:41:59 +02:00
Jens Finkhaeuser
b321626c4c Obviously, ImportError no longer falls through. That should have been
part of the PR earlier.
2016-09-07 10:47:32 +02:00
Jens Finkhaeuser
ee86744046 Add test cases for missing and bad operationIds - slightly different from
the module with error case, but the result should be the same.
2016-09-07 10:07:46 +02:00
Rafael Caricio
0ac6721f4e Comprehensive error on invalid Swagger Spec 2016-06-28 10:47:39 +02:00
Rafael Caricio
cfcdfa72a4 Use safe_load to avoid code invocation from YAML files 2016-06-28 10:43:02 +02:00
Rafael Caricio
d7a8880378 Sort imports 2016-06-25 21:32:57 +02:00
Rafael Caricio
98e99ed9e3 Opens spec file as binary and then handle problems with encoding.
Should fix issue #249.
2016-06-25 20:32:43 +02:00
David Hotham
851d04372e isort imports 2016-06-10 20:39:51 +01:00
João Santos
87afbfe6eb #218 Raise import errors on endpoint handling 2016-06-08 15:11:06 +02:00
Rafael Caricio
415a1e8a60 Fix isort issues 2016-05-10 14:54:14 +02:00
Rafael Caricio
637d6efb27 Fix #220 Defer user error handing for swagger spec validator 2016-05-10 11:51:43 +02:00
Rafael Caricio
c30bdbb324 Fix import sorting in examples and tests 2016-04-08 14:33:27 +02:00
Rafael Caricio
a86b96c5e2 Sort imports in tests and examples 2016-04-08 14:33:27 +02:00
Rafael Caricio
6358c8c47d Adopt isort to ensure better code quality 2016-04-08 14:33:27 +02:00
Rafael Caricio
b60646e047 Reorganizing tests 2016-02-25 14:49:19 +01:00
Rafael Caricio
743feb133b Use debug flag to decide how to handle errors in API spec 2016-02-24 13:16:32 +01:00
Rafael Caricio
18492d6852 App breaks if error adding operation 2016-02-23 18:17:38 +01:00
John Kleijn
5fe88cba08 Addressed overlapping method names problem and removed main module as default 2015-12-06 10:32:06 +01:00
João Santos
6a106edc34 https://github.com/zalando/connexion/issues/6 Test api 2015-06-13 12:37:31 +02:00