Skip to content

Commit 2e24083

Browse files
Make template project testable
1 parent 43193ba commit 2e24083

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_proplib_template.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pytest
66

7-
# TODO-TEMPLATE: Import the python wrapper
7+
# TODO-TEMPLATE: Import the python wrapper package
88
from ITS import PropLibTemplate
99

1010
# Test data is expected to exist in parent repository
@@ -13,10 +13,16 @@
1313
ABSTOL__DB = 0.1 # Absolute tolerance, in dB, to ensure outputs match expected value
1414

1515

16+
# TODO-TEMPLATE: Update CSV reader based on test data CSV structure
1617
def read_csv_test_data(filename: str):
1718
with open(TEST_DATA_DIR / filename) as f:
1819
reader = csv.reader(f)
1920
next(reader) # Skip header row
2021
for row in reader:
2122
# yield (inputs, rtn, output)
2223
yield tuple(map(float, row[:-2])), int(row[-2]), float(row[-1])
24+
25+
26+
# TODO-TEMPLATE: Implement unit tests for this Python wrapper
27+
def test_always_pass():
28+
return

0 commit comments

Comments
 (0)