File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212The tests use realistic rocket configurations and scenarios to ensure the
1313robustness of the 3 DOF implementation.
14+
15+ Note: These tests are designed for the 3 DOF feature implemented in issue #882.
16+ They will be skipped until PointMassMotor and PointMassRocket are available.
1417"""
1518
1619import numpy as np
1720import pytest
1821
1922from rocketpy import Environment , Flight
20- from rocketpy .motors .point_mass_motor import PointMassMotor
21- from rocketpy .rocket .point_mass_rocket import PointMassRocket
23+
24+ # Try to import 3DOF-specific classes, skip tests if not available
25+ try :
26+ from rocketpy .motors .point_mass_motor import PointMassMotor
27+ from rocketpy .rocket .point_mass_rocket import PointMassRocket
28+
29+ THREEDOF_AVAILABLE = True
30+ except ImportError :
31+ THREEDOF_AVAILABLE = False
32+ PointMassMotor = None
33+ PointMassRocket = None
34+
35+ # Skip all tests in this module if 3DOF is not available
36+ pytestmark = pytest .mark .skipif (
37+ not THREEDOF_AVAILABLE ,
38+ reason = "3 DOF feature (PointMassMotor, PointMassRocket) not yet available. "
39+ "These tests will be enabled when issue #882 is merged." ,
40+ )
2241
2342
2443@pytest .fixture
You can’t perform that action at this time.
0 commit comments