Skip to content

Commit

Permalink
Adds test to verify that posterior_samples_ raises attribute error pr…
Browse files Browse the repository at this point in the history
…ior to inferring
  • Loading branch information
tingiskhan committed Mar 8, 2025
1 parent 36fc5db commit 14ed7df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/sktime/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,10 @@ def __eq__(self, other):
)

assert rshift_instance == expected_instance


def test_samples_unset():
model = BaseProphetForecaster()

with pytest.raises(AttributeError):
samples = model.posterior_samples_

0 comments on commit 14ed7df

Please sign in to comment.