Skip to content

Commit 84e80d6

Browse files
Remove __all__ in package root, add check for test data
1 parent a9cb4fe commit 84e80d6

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/ITS/PropLibTemplate/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@
66
# from .proplib_template import (
77

88
# )
9-
10-
# TODO-TEMPLATE: Put the name of the module here
11-
__all__ = ["proplib_template"]

tests/test_utils.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22
from pathlib import Path
33

44
# Test data is expected to exist in tests/data
5-
TEST_DATA_DIR = Path(__file__).parent / "data"
5+
# TODO-TEMPLATE: Remove the '#' in the line below after adding your test data submodule
6+
TEST_DATA_DIR = Path(__file__).parent # / "data"
67
ABSTOL__DB = 0.1 # Absolute tolerance, in dB, to ensure outputs match expected value
78

9+
# Check if test data directory exists and is not empty
10+
if not TEST_DATA_DIR.exists() or not any(TEST_DATA_DIR.iterdir()):
11+
raise RuntimeError(
12+
f"Test data is not available in {TEST_DATA_DIR}.\n Try running "
13+
+ "`git submodule init` and `git submodule update` to clone the test data submodule."
14+
)
15+
816

917
# TODO-TEMPLATE: Update CSV reader based on test data CSV structure
1018
def read_csv_test_data(filename: str):

0 commit comments

Comments
 (0)