diff --git a/tests/data/test_optimization_indexset.py b/tests/data/test_optimization_indexset.py index ec0d0cc7..18500c1b 100644 --- a/tests/data/test_optimization_indexset.py +++ b/tests/data/test_optimization_indexset.py @@ -135,7 +135,7 @@ def test_add_elements(self, platform: ixmp4.Platform): elements=test_elements, # type: ignore ) indexset_1 = platform.backend.optimization.indexsets.get( - run_id=run.id, name="Indexset 1" + run_id=run.id, name=indexset_1.name ) platform.backend.optimization.indexsets.add_elements(