FlaskVersion - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: Code sharing (https://python-forum.io/forum-5.html) +--- Thread: FlaskVersion (/thread-24795.html) |
FlaskVersion - itaybardugo - Mar-04-2020 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. RE: FlaskVersion - ndc85430 - Mar-05-2020 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.
RE: FlaskVersion - itaybardugo - Mar-05-2020 fixed. Thank you for your interesting. |