You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, sometimes the documentation mentions that a method can raise an exception but it doesn't mention the type of the exception. Sometimes there is no mention of any exception at all while it is clear that an exception must be raised. This means that I often end up with except Exception which is not a very good practice.
Let me mention some examples:
webtest.app.TestApp must raise an exception if the app argument is an invalid string
webtest.app.TestApp.get and friends must raise an exception if expect_errors==False
webtest.response.TestResponse.click must raise an exception if the link points to a failing URL
Hello, sometimes the documentation mentions that a method can raise an exception but it doesn't mention the type of the exception. Sometimes there is no mention of any exception at all while it is clear that an exception must be raised. This means that I often end up with
except Exception
which is not a very good practice.Let me mention some examples:
webtest.app.TestApp
must raise an exception if theapp
argument is an invalid stringwebtest.app.TestApp.get
and friends must raise an exception ifexpect_errors==False
webtest.response.TestResponse.click
must raise an exception if the link points to a failing URLwebtest.forms.Form.submit
must raise an exception if theaction
attribute of the form points to a failing URLwebtest.forms.Form.__setitem__
must raise an exception if the field does not exist or if the name matches multiple fieldsCan you please improve the documentation of the exceptions that may occur?
The text was updated successfully, but these errors were encountered: