Skip to content

Commit

Permalink
Remove testing recommendations
Browse files Browse the repository at this point in the history
We want to keep the style guide as minimal as possible.
Recommendations about code testing should go into a separate
document (see theupdateframework/python-tuf#1129).
  • Loading branch information
lukpueh committed Dec 1, 2020
1 parent f88d6c0 commit e8f1e72
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions python.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<!-- TODO: Should we add more tangible instructions? -->

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.

0 comments on commit e8f1e72

Please sign in to comment.