Skip to content

Commit

Permalink
TST: update tests for reparam changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-will committed Sep 26, 2024
1 parent cedb7d4 commit cd94fb9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ def test_get_reparameterisation_invalid_input():

def test_get_reparameterisation_defaults():
"""Test using an updated defaults dictionary."""
defaults = {"default": ("Class", {"x": 2})}
from nessai.reparameterisations import ReparameterisationDict

defaults = ReparameterisationDict()
defaults.add_reparameterisation("default", "Class", {"x": 2})
cls, kwargs = get_reparameterisation("default", defaults=defaults)
assert cls == "Class"
assert kwargs == {"x": 2}

0 comments on commit cd94fb9

Please sign in to comment.