Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FlaskVersion
#1
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.
Reply
#2
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.
Reply
#3
fixed.
Thank you for your interesting.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020