1👍
✅
As I could see, the test with error is test_add_exercise_POST
, and it’s because you start with an empty database in test enviroment, you can’t do Exercises.objects.values('exercise_id').order_by('-exercise_id')[0]['exercise_id'] + 1
inside add_exercise
function, before creating test exercises objects and saving on test database.
Source:stackexchange.com