Skip to content

Commit

Permalink
Merge branch 'mnt/refactoring-fixtures' of https://github.com/RocketP…
Browse files Browse the repository at this point in the history
…y-Team/RocketPy into mnt/refactoring-fixturesdas
  • Loading branch information
lucasfourier committed Feb 14, 2024
2 parents 560fe32 + dce2080 commit 6c4e1d8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
"tests.fixtures.motor.hybrid_fixtures",
"tests.fixtures.motor.solid_motor_fixtures",
"tests.fixtures.motor.liquid_fixtures",
"tests.fixtures.motor.generic_motor_fixtures",
"tests.fixtures.parachutes.parachute_fixtures",
"tests.fixtures.rockets.rocket_fixtures",
"tests.fixtures.surfaces.surface_fixtures",
"tests.fixtures.units.numerical_fixtures"
"tests.fixtures.units.numerical_fixtures",
]

#


def pytest_addoption(parser):
"""Add option to run slow tests. This is used to skip slow tests by default.
Expand Down
14 changes: 11 additions & 3 deletions tests/fixtures/hybrid/hybrid_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import numpy as np
import pytest

from rocketpy import (CylindricalTank, Fluid, Function, HybridMotor,
LevelBasedTank, LiquidMotor, MassBasedTank,
SphericalTank, UllageBasedTank)
from rocketpy import (
CylindricalTank,
Fluid,
Function,
HybridMotor,
LevelBasedTank,
LiquidMotor,
MassBasedTank,
SphericalTank,
UllageBasedTank,
)


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions tests/fixtures/motor/motor_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
## Motors and rockets



@pytest.fixture
def cesaroni_m1670(): # old name: solid_motor
"""Create a simple object of the SolidMotor class to be used in the tests.
Expand Down Expand Up @@ -141,4 +140,4 @@ def generic_motor():
dry_inertia=(0.2, 0.2, 0.08),
)

return motor
return motor

0 comments on commit 6c4e1d8

Please sign in to comment.