Skip to content

Commit

Permalink
Fix test for legacy fixed_param behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Nov 25, 2024
1 parent 34583e3 commit 555cb4c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,13 @@ def test_exe_only() -> None:
assert not model2._fixed_param


def test_fixed_param() -> None:
def test_legacy_fixed_param() -> None:
stan = os.path.join(DATAFILES_PATH, 'datagen_poisson_glm.stan')
model = CmdStanModel(stan_file=stan)
assert model._fixed_param
if cmdstan_version_before(2, 36):
assert not model._fixed_param
else:
assert model._fixed_param


def test_model_pedantic(caplog: pytest.LogCaptureFixture) -> None:
Expand Down

0 comments on commit 555cb4c

Please sign in to comment.