Im writing unit tests for an API written in Python with Flask. Specifically, I want to test that the error handling for my routes work properly so I want to deliberately build URLs with missing parameters. I want to avoid hard-coding by using url_for() but that doesn't allow you to have missing parameters, so how to build bad URLs ?
Aucun commentaire:
Enregistrer un commentaire