Skip to content

Commit 85544e6

Browse files
committed
TST:update test_check_missing_no_components_missing:import the lib at the top of file
1 parent 6e16e60 commit 85544e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/rocket/test_rocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import numpy as np
44
import pytest
5+
import warnings
56

67
from rocketpy import Function, NoseCone, Rocket, SolidMotor
78
from rocketpy.mathutils.vector_matrix import Vector
@@ -397,7 +398,6 @@ def test_check_missing_some_components(calisto):
397398

398399
def test_check_missing_no_components_missing(calisto_robust):
399400
"""Tests the _check_missing_components method for a complete Rocket."""
400-
import warnings
401401
# Catch all warnings that occur inside this 'with' block.
402402
with warnings.catch_warnings(record=True) as w:
403403
warnings.simplefilter("always")

0 commit comments

Comments
 (0)