Skip to content

Commit

Permalink
TST: Add a test for sensors draw
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR committed Sep 12, 2024
1 parent bb8af25 commit 3c759f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
from unittest.mock import patch

import numpy as np
import pytest
Expand Down Expand Up @@ -86,6 +87,15 @@ def test_gnss_receiver(self):
assert np.allclose(np.array(altitude), sim_altitude, atol=1e-12)


@pytest.mark.parametrize("plane", ["xz", "yz"])
@patch("matplotlib.pyplot.show")
def test_draw(
mock_show, calisto_with_sensors, plane
): # pylint: disable=unused-argument
"""Test the drawing of the sensors."""
calisto_with_sensors.draw(plane=plane)


def test_export_all_sensors_data(flight_calisto_with_sensors):
"""Test the export of sensor data.
Expand Down

0 comments on commit 3c759f7

Please sign in to comment.