Skip to content

Commit

Permalink
Add rationale for ensure_cratedb_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Mar 25, 2021
1 parent 03c050a commit 8758f08
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/crate/client/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ def setUpMocked(test):


def ensure_cratedb_layer():
"""
In order to skip individual tests by manually disabling them within
`def test_suite()`, it is crucial make the test layer not run on each
and every occasion. So, things like this will be possible::
./bin/test -vvvv --ignore_dir=testing
TODO: Through a subsequent patch, the possibility to individually
unselect specific tests might be added to `def test_suite()`
on behalf of environment variables.
"""
global crate_layer

if crate_layer is None:
Expand Down

0 comments on commit 8758f08

Please sign in to comment.