During white box testing which conditions have to be tested?
Consider a post request with integer data. In the function, I will convert that post data (string type) to an integer type. I am using python int() function and hence 'int' will produce value error for an alphabetical valuye and Type error for data other than string and integer.
In the front end, that is in HTML, the user can enter only integer data which is achieved by HTML tags.
Is it necessary to test the statement in white box tests with conditions that produce type and value error?