Skip to content

Commit 02f98c0

Browse files
committed
TST: adding a test for get_environement_object
1 parent bb1d1ad commit 02f98c0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/integration/test_environment_analysis.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import matplotlib as plt
66
import pytest
7+
from rocketpy import Environment
78

89
plt.rcParams.update({"figure.max_open_warning": 0})
910

@@ -55,3 +56,9 @@ def test_exports(mock_show, env_analysis): # pylint: disable=unused-argument
5556
os.remove("env_analysis_dict")
5657
os.remove("wind_rose.gif")
5758
os.remove("export_env_analysis.json")
59+
60+
61+
@pytest.mark.slow
62+
@patch("matplotlib.pyplot.show")
63+
def test_get_environment_object(mock_show, env_analysis): # pylint: disable=unused-argument
64+
assert isinstance(env_analysis.get_environment_object(), Environment)

0 commit comments

Comments
 (0)