Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions rocketpy/rocket/rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,7 @@ def _check_missing_components(self):

if missing_components:
component_list = ", ".join(missing_components)
warnings.warn(
f"Rocket has no {component_list} defined.", UserWarning
)
warnings.warn(f"Rocket has no {component_list} defined.", UserWarning)

@property
def nosecones(self):
Expand Down
6 changes: 2 additions & 4 deletions tests/unit/rocket/test_rocket.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import warnings
from unittest.mock import patch

import numpy as np
import pytest
import warnings

from rocketpy import Function, NoseCone, Rocket, SolidMotor
from rocketpy.mathutils.vector_matrix import Vector
Expand All @@ -11,9 +11,7 @@


@patch("matplotlib.pyplot.show")
def test_elliptical_fins(
mock_show, calisto_robust, calisto_trapezoidal_fins
): # pylint: disable=unused-argument
def test_elliptical_fins(mock_show, calisto_robust, calisto_trapezoidal_fins): # pylint: disable=unused-argument
test_rocket = calisto_robust
calisto_robust.aerodynamic_surfaces.remove(calisto_trapezoidal_fins)
test_rocket.add_elliptical_fins(4, span=0.100, root_chord=0.120, position=-1.168)
Expand Down