Skip to content

Commit e42d277

Browse files
committed
MNT: Refactor tank testing and improve file structure.
1 parent eef4410 commit e42d277

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

rocketpy/motors/tank_geometry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from functools import cached_property
22

33
import numpy as np
4+
45
from ..mathutils.function import Function, funcify_method
56
from ..mathutils.piecewise_function import PiecewiseFunction
67
from ..plots.tank_geometry_plots import _TankGeometryPlots

tests/unit/test_tank.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -348,18 +348,4 @@ def expected_gas_inertia(t):
348348
tank.liquid_inertia.y_array,
349349
atol=1e-3,
350350
rtol=1e-2,
351-
)
352-
assert np.allclose(
353-
expected_gas_inertia(times), tank.gas_inertia.y_array, atol=1e-3, rtol=1e-2
354-
)
355-
assert np.allclose(
356-
expected_liquid_inertia(times) + expected_gas_inertia(times),
357-
tank.inertia.y_array,
358-
atol=1e-3,
359-
rtol=1e-2,
360-
)
361-
362-
363-
@patch("matplotlib.pyplot.show")
364-
def test_tank_geometry_plots_info(mock_show): # pylint: disable=unused-argument
365-
assert TankGeometry({(0, 5): 1}).plots.all() is None
351+
)

0 commit comments

Comments
 (0)