TurboGears / tg2

Python web framework with full-stack layer implemented on top of a microframework core with support for SQL DBMS, MongoDB and Pluggable Applications
http://www.turbogears.org/
Other
806 stars 78 forks source link

Added default options method for RestController #91

Closed GO3LIN closed 7 years ago

GO3LIN commented 7 years ago

Next to https://github.com/TurboGears/tg2/issues/90

amol- commented 7 years ago

Please also add a test in https://github.com/TurboGears/tg2/blob/development/tests/test_rest_controller_dispatch.py

amol- commented 7 years ago

And note that this is not working as expose is not available in that module -> https://travis-ci.org/TurboGears/tg2/jobs/260729192#L436

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 280bfd3904cd9122dbb2f49edb65a50dd1ee6276 on GO3LIN:development into c2062f5587765b7d7a97810a648237ff7fc02178 on TurboGears:development.

GO3LIN commented 7 years ago

Thanks for your reading, I fixed everything you noticed in the comments and added a test case for the options method that just checks that the response status code is 204. Unfortunately, Travis still failed but on the python 3.6 build only.