diff --git a/src/matchbox/models/linkers/splinklinker.py b/src/matchbox/models/linkers/splinklinker.py index ce1e0806..69116158 100644 --- a/src/matchbox/models/linkers/splinklinker.py +++ b/src/matchbox/models/linkers/splinklinker.py @@ -143,7 +143,7 @@ def check_ids_match(self) -> "SplinkSettings": "left_id and right_id must match in a Splink linker." ) return self - + @model_validator(mode="after") def check_link_only(self) -> "SplinkSettings": if self.linker_settings.link_type != "link_only": diff --git a/test/client/test_linkers.py b/test/client/test_linkers.py index a2609fd9..1664d6aa 100644 --- a/test/client/test_linkers.py +++ b/test/client/test_linkers.py @@ -206,6 +206,7 @@ def test_splink_training_functions(): function="estimate_u_using_random_sampling", arguments={"foo": "bar"} ) + def test_splink_settings(): valid_settings = SplinkSettings( left_id="hash", @@ -233,4 +234,3 @@ def test_splink_settings(): linker_settings=SettingsCreator(link_type="link_only"), threshold=None, ) -