Skip to content

Commit be3a773

Browse files
committed
Add support for additional test data folder (CDL_DATA variable)
1 parent 71e08e3 commit be3a773

File tree

3 files changed

+498
-477
lines changed

3 files changed

+498
-477
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ This release requires PlotPy v2.4.0 or later, which brings the following bug fix
4646

4747
* When doing an operation which involves an object (signal or image) with higher order number than the current object (e.g. when subtracting an image with an image from a group below the current image), the resulting object's title now correctly refers to the order numbers of the objects involved in the operation (e.g., to continue with the subtraction example mentioned above, the resulting object's title was previously referring to the order number before the insertion of the resulting image)
4848

49+
* Added support for additional test data folder thanks to the `CDL_DATA` environment variable (useful for testing purposes, and especially in the context of Debian packaging)
50+
4951
## DataLab Version 0.16.1 ##
5052

5153
Since version 0.16.0, many validation functions have been added to the test suite.

cdl/tests/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
from cdl.utils import qthelpers as qth
2929
from cdl.utils import tests
3030

31+
# Add test data files and folders pointed by `CDL_DATA` environment variable:
32+
tests.add_test_path_from_env("CDL_DATA")
33+
34+
3135
# TODO: [P2] Documentation: add more screenshots from tests
3236

3337

0 commit comments

Comments
 (0)