Skip to content

Commit

Permalink
Fix 'initialization' -> 'initialisation' in test function names
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacCheng9 committed Aug 6, 2024
1 parent beff46b commit b06825d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/strategies/test_mean_reversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
)


def test_mean_reversion_strategy_initialization() -> None:
def test_mean_reversion_strategy_initialisation() -> None:
params = {"window": 20, "std_dev": 2.0}
strategy = MeanReversionStrategy(params)
assert strategy.window == 20
Expand Down
2 changes: 1 addition & 1 deletion tests/strategies/test_moving_average_crossover.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
)


def test_moving_average_crossover_strategy_initialization() -> None:
def test_moving_average_crossover_strategy_initialisation() -> None:
params = {"short_window": 5, "long_window": 20}
strategy = MovingAverageCrossoverStrategy(params)
assert strategy.short_window == 5
Expand Down
2 changes: 1 addition & 1 deletion tests/strategies/test_pairs_trading.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_pairs_trading_strategy_generate_signals() -> None:
assert signals["signal"].is_in([0.0, 1.0, -1.0]).all()


def test_pairs_trading_strategy_initialization() -> None:
def test_pairs_trading_strategy_initialisation() -> None:
params = {"window": 20, "entry_z_score": 2.0, "exit_z_score": 0.5}
strategy = PairsTradingStrategy(params)
assert strategy.window == 20
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backtester.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
],
)
def test_backtester_initialization(
def test_backtester_initialisation(
request: pytest.FixtureRequest,
strategy_class: Strategy,
params: dict[str, Any],
Expand Down

0 comments on commit b06825d

Please sign in to comment.