Skip to content

Commit e1db4ce

Browse files
author
henrykotze
committed
Add python Airflow Test
1 parent 73a7dda commit e1db4ce

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

python/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ if (BUILD_TESTING AND NOT WIN32)
124124
)
125125

126126
set(python_tests
127+
pyAirFlow_TEST
127128
pyAirPressure_TEST
128129
pyAirSpeed_TEST
129130
pyAltimeter_TEST

python/src/sdf/pyAirFlow.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void defineAirFlow(pybind11::object module)
4343
.def("set_speed_noise",
4444
&sdf::AirFlow::SetSpeedNoise,
4545
"Set the noise values related to the speed data.")
46-
.def("dir_noise", &sdf::AirFlow::DirectionNoise,
46+
.def("direction_noise", &sdf::AirFlow::DirectionNoise,
4747
"Get the direction noise values.")
4848
.def("set_direction_noise",
4949
&sdf::AirFlow::SetDirectionNoise,

python/test/pyAirFlow_TEST.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def test_set(self):
4848
speed_noise.set_precision(8.9)
4949

5050
air.set_direction_noise(dir_noise)
51+
air.set_speed_noise(speed_noise)
5152
self.assertEqual(dir_noise, air.direction_noise())
5253
self.assertEqual(speed_noise, air.speed_noise())
5354

0 commit comments

Comments
 (0)