Skip to content

Commit

Permalink
fix(test_fourier.py): removed days_in_period
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishaanjolly committed Oct 2, 2024
1 parent 3d21431 commit 92dc28d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/mmm/test_fourier.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,13 @@ def test_serialization_to_json() -> None:
@pytest.fixture
def yearly_fourier() -> YearlyFourier:
prior = Prior("Laplace", mu=0, b=1, dims="fourier")
return YearlyFourier(n_order=2, days_in_period=365, prior=prior)
return YearlyFourier(n_order=2, prior=prior)


@pytest.fixture
def monthly_fourier() -> MonthlyFourier:
prior = Prior("Laplace", mu=0, b=1, dims="fourier")
return MonthlyFourier(n_order=2, days_in_period=30, prior=prior)
return MonthlyFourier(n_order=2, prior=prior)


def test_get_default_start_date_none_yearly(yearly_fourier: YearlyFourier):
Expand Down Expand Up @@ -355,7 +355,6 @@ def test_fourier_base_instantiation():
with pytest.raises(TypeError) as exc_info:
FourierBase(
n_order=2,
days_in_period=365,
prior=Prior("Laplace", mu=0, b=1, dims="fourier"),
)
assert "Can't instantiate abstract class FourierBase" in str(exc_info.value)

0 comments on commit 92dc28d

Please sign in to comment.