Python Forum

Full Version: FlaskVersion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi,
just wrote a new package to handle routes endpoints in Flask
it allows you to invoke different functions for the same route according to the given request version.

i hope that package will help some developers to manage their API requests easily

GIT

for any questions, feel free to contact me.
Your tests are written in a strange way, with those if statements. The usual way to do it is to assert that you get the right value and then the test will pass or fail accordingly. The calls to print shouldn't be needed either - usually when a test fails, you're told what the actual and expected values are.
fixed.
Thank you for your interesting.