Skip to content

Is assert best practise? #9932

Answered by The-Compiler
CTimmerman asked this question in Q&A
Discussion options

You must be logged in to vote

The warning you get from bandit applies (in certain conditions) to your application/library code - but it does not apply to test code. There is no point in running your testsuite with assertions disabled.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@CTimmerman
Comment options

@nicoddemus
Comment options

Answer selected by The-Compiler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants