From 3e97ec87d8a52cdc4660e2512a89ff527e0b30d1 Mon Sep 17 00:00:00 2001 From: Bryn Pickering <17178478+brynpickering@users.noreply.github.com> Date: Tue, 24 Dec 2024 20:32:13 +0000 Subject: [PATCH] Update latex math test --- tests/test_backend_latex_backend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_backend_latex_backend.py b/tests/test_backend_latex_backend.py index 7c100ffe..524854c2 100644 --- a/tests/test_backend_latex_backend.py +++ b/tests/test_backend_latex_backend.py @@ -200,7 +200,8 @@ def test_add_objective(self, dummy_latex_backend_model): assert len(dummy_latex_backend_model.objectives.data_vars) == 1 def test_default_objective_set(self, dummy_latex_backend_model): - dummy_latex_backend_model.objective == "min_cost_optimisation" + # Dummy backend model has no objective initially + assert not hasattr(dummy_latex_backend_model, "objective") def test_new_objective_set(self, dummy_latex_backend_model): dummy_latex_backend_model.add_objective(