From 8462e259bd41652aecc3d7be907d8d84599cd889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=B8gaard?= Date: Tue, 6 Dec 2022 14:55:23 +0100 Subject: [PATCH] Remove obsolete unit test --- tests/models/test_task.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/models/test_task.py b/tests/models/test_task.py index 2d2d1a44a..0ef1d8de4 100644 --- a/tests/models/test_task.py +++ b/tests/models/test_task.py @@ -35,18 +35,3 @@ def test_transform_prediction_and_target() -> None: transform_target=torch.log10, transform_inference=torch.log10, ) - - # Test wrong combination of inputs - with pytest.raises( - AssertionError, - match=( - "Please specify both `transform_inference` and `transform_target`" - ), - ): - EnergyReconstruction( - hidden_size=gnn.nb_outputs, - target_labels="energy", - loss_function=LogCoshLoss(), - transform_prediction_and_target=torch.log10, - transform_inference=torch.log10, - )