Skip to content

Commit

Permalink
Add python Airflow Test
Browse files Browse the repository at this point in the history
Signed-off-by: henrykotze <[email protected]>
  • Loading branch information
henrykotze committed Dec 1, 2023
1 parent 73a7dda commit 9560bfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ if (BUILD_TESTING AND NOT WIN32)
)

set(python_tests
pyAirFlow_TEST
pyAirPressure_TEST
pyAirSpeed_TEST
pyAltimeter_TEST
Expand Down
2 changes: 1 addition & 1 deletion python/src/sdf/pyAirFlow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void defineAirFlow(pybind11::object module)
.def("set_speed_noise",
&sdf::AirFlow::SetSpeedNoise,
"Set the noise values related to the speed data.")
.def("dir_noise", &sdf::AirFlow::DirectionNoise,
.def("direction_noise", &sdf::AirFlow::DirectionNoise,
"Get the direction noise values.")
.def("set_direction_noise",
&sdf::AirFlow::SetDirectionNoise,
Expand Down
1 change: 1 addition & 0 deletions python/test/pyAirFlow_TEST.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def test_set(self):
speed_noise.set_precision(8.9)

air.set_direction_noise(dir_noise)
air.set_speed_noise(speed_noise)
self.assertEqual(dir_noise, air.direction_noise())
self.assertEqual(speed_noise, air.speed_noise())

Expand Down

0 comments on commit 9560bfc

Please sign in to comment.