Skip to content

Commit

Permalink
Less opinionated wording (#917)
Browse files Browse the repository at this point in the history
I shorted the text to be less opinionated.

I disagreed to the previous text: the ORM is a tool like any other tool. If it helps you, then use it. The only reason not to use it, is that it might slow your tests down.
  • Loading branch information
guettli committed Mar 20, 2021
1 parent 11db342 commit a179547
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ Database creation/re-use
access. By default your tests will fail if they try to access the
database. Only if you explicitly request database access will this be
allowed. This encourages you to keep database-needing tests to a
minimum which is a best practice since next-to-no business logic
should be requiring the database. Moreover it makes it very clear
what code uses the database and catches any mistakes.
minimum which makes it very clear what code uses the database.

Enabling database access in tests
---------------------------------
Expand Down

0 comments on commit a179547

Please sign in to comment.