From e8f1e728f39107065a05716a8c4b9819c624e9d5 Mon Sep 17 00:00:00 2001 From: Lukas Puehringer Date: Tue, 1 Dec 2020 10:54:40 +0100 Subject: [PATCH] Remove testing recommendations We want to keep the style guide as minimal as possible. Recommendations about code testing should go into a separate document (see theupdateframework/tuf#1129). --- python.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/python.md b/python.md index 227fba8..05c6a3e 100644 --- a/python.md +++ b/python.md @@ -208,14 +208,3 @@ It seems a bit lost here. --> If returning early is not an option, and `if` and `else` are thus both needed, it is slightly preferable to keep the shorter clause first, so that the `else` isn't too far from the `if`. - - - -### Testing - - - -Write 90% tests. The test should make sure that it will catch 90% of the -potential problems with the function. Avoid writing 50% tests (that only check -a common case or two) and avoid writing 99.9% tests because it will consume too -much of your time.