… < 255 characters and uses only alphanumeric and valid special characters (!.?@#) in service/models.py.
Also wrote two unit tests in tests/tests_base.py:
first one, making sure a description field input exceeding 255 characters gives a status code of 400 and displays correct error message.
second one, making sure a description field input using a non-alphanumeric or special character not part of (!.?@#) gives a status code of 400 and displays correct error message.
… < 255 characters and uses only alphanumeric and valid special characters (!.?@#) in
service/models.py
.Also wrote two unit tests in
tests/tests_base.py
:400
and displays correct error message.400
and displays correct error message.