@@ -111,16 +111,10 @@ def cesaroni_m1670(): # old name: solid_motor
111111
112112
113113@pytest .fixture
114- def calisto ( cesaroni_m1670 ): # old name: rocket
114+ def calisto_motorless ():
115115 """Create a simple object of the Rocket class to be used in the tests. This
116- is the same rocket that has been used in the getting started guide for
117- years. The Calisto rocket is the Projeto Jupiter's project launched at the
118- 2019 Spaceport America Cup.
119-
120- Parameters
121- ----------
122- cesaroni_m1670 : rocketpy.SolidMotor
123- An object of the SolidMotor class. This is a pytest fixture too.
116+ is the same rocket that has been used in the getting started guide for years
117+ but without a motor.
124118
125119 Returns
126120 -------
@@ -136,60 +130,71 @@ def calisto(cesaroni_m1670): # old name: rocket
136130 center_of_mass_without_motor = 0 ,
137131 coordinate_system_orientation = "tail_to_nose" ,
138132 )
133+ return calisto
134+
135+
136+ @pytest .fixture
137+ def calisto (calisto_motorless , cesaroni_m1670 ): # old name: rocket
138+ """Create a simple object of the Rocket class to be used in the tests. This
139+ is the same rocket that has been used in the getting started guide for
140+ years. The Calisto rocket is the Projeto Jupiter's project launched at the
141+ 2019 Spaceport America Cup.
142+
143+ Parameters
144+ ----------
145+ calisto_motorless : rocketpy.Rocket
146+ An object of the Rocket class. This is a pytest fixture too.
147+ cesaroni_m1670 : rocketpy.SolidMotor
148+ An object of the SolidMotor class. This is a pytest fixture too.
149+
150+ Returns
151+ -------
152+ rocketpy.Rocket
153+ A simple object of the Rocket class
154+ """
155+ calisto = calisto_motorless
139156 calisto .add_motor (cesaroni_m1670 , position = - 1.373 )
140157 return calisto
141158
142159
143160@pytest .fixture
144- def calisto_liquid_modded (liquid_motor ):
161+ def calisto_liquid_modded (calisto_motorless , liquid_motor ):
145162 """Create a simple object of the Rocket class to be used in the tests. This
146163 is an example of the Calisto rocket with a liquid motor.
147164
148165 Parameters
149166 ----------
167+ calisto_motorless : rocketpy.Rocket
168+ An object of the Rocket class. This is a pytest fixture too.
150169 liquid_motor : rocketpy.LiquidMotor
151170
152171 Returns
153172 -------
154173 rocketpy.Rocket
155174 A simple object of the Rocket class
156175 """
157- calisto = Rocket (
158- radius = 0.0635 ,
159- mass = 14.426 ,
160- inertia = (6.321 , 6.321 , 0.034 ),
161- power_off_drag = "data/calisto/powerOffDragCurve.csv" ,
162- power_on_drag = "data/calisto/powerOnDragCurve.csv" ,
163- center_of_mass_without_motor = 0 ,
164- coordinate_system_orientation = "tail_to_nose" ,
165- )
176+ calisto = calisto_motorless
166177 calisto .add_motor (liquid_motor , position = - 1.373 )
167178 return calisto
168179
169180
170181@pytest .fixture
171- def calisto_hybrid_modded (hybrid_motor ):
182+ def calisto_hybrid_modded (calisto_motorless , hybrid_motor ):
172183 """Create a simple object of the Rocket class to be used in the tests. This
173184 is an example of the Calisto rocket with a hybrid motor.
174185
175186 Parameters
176187 ----------
188+ calisto_motorless : rocketpy.Rocket
189+ An object of the Rocket class. This is a pytest fixture too.
177190 hybrid_motor : rocketpy.HybridMotor
178191
179192 Returns
180193 -------
181194 rocketpy.Rocket
182195 A simple object of the Rocket class
183196 """
184- calisto = Rocket (
185- radius = 0.0635 ,
186- mass = 14.426 ,
187- inertia = (6.321 , 6.321 , 0.034 ),
188- power_off_drag = "data/calisto/powerOffDragCurve.csv" ,
189- power_on_drag = "data/calisto/powerOnDragCurve.csv" ,
190- center_of_mass_without_motor = 0 ,
191- coordinate_system_orientation = "tail_to_nose" ,
192- )
197+ calisto = calisto_motorless
193198 calisto .add_motor (hybrid_motor , position = - 1.373 )
194199 return calisto
195200
0 commit comments