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 29, 2021
1 parent 6870fc5 commit 9c98db5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/crate/client/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,19 @@ 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.
A blueprint for this kind of logic can be found at
https://github.com/crate/crate/commit/414cd833.
"""
global crate_layer

if crate_layer is None:
Expand Down

0 comments on commit 9c98db5

Please sign in to comment.