-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move validation #79
Move validation #79
Conversation
Pull Request Test Coverage Report for Build 5977388270
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il changelog dov'è??
try: | ||
booker.move(booking=booking, data=data) | ||
except BookerException as e: | ||
raise BadRequest(str(e)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Io faccio così di solito:
except BookerException as e:
raise BadRequest(e.args[0])
Cosa preferisci?
}, | ||
) | ||
|
||
self.assertEqual(response.status_code, 400) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metti anche un check sul messaggio di errore, che potrebbe anche dare 400 per un altro motivo
No description provided.