From 5201cab4a9e3b507c2362659b5e587ec8c048c34 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Wed, 14 May 2025 15:40:42 +0100 Subject: [PATCH] mocking data for property class tests --- backend/tests/test_property.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/tests/test_property.py b/backend/tests/test_property.py index 78f08f3c..7f7cc140 100644 --- a/backend/tests/test_property.py +++ b/backend/tests/test_property.py @@ -103,6 +103,11 @@ class TestProperty: property_instance.number_of_rooms = 5 property_instance.floor_area = 100 property_instance.floor_height = 2.5 + + # Fill these values that come from the epc_record + property_instance.energy["primary_energy_consumption"] = 1234 + property_instance.energy["epc_co2_emissions"] = 5 + return property_instance @pytest.fixture