updating fixtures with function call

This commit is contained in:
Khalim Conn-Kowlessar 2025-05-15 16:52:03 +01:00
parent eb35ea49ff
commit b0f75b5e5b
3 changed files with 5 additions and 5 deletions

View file

@ -110,7 +110,7 @@ class TestProperty:
return property_instance
@pytest.fixture
@pytest.fixture()
def mock_cleaner(self):
lighting_averages = [
{'lighting-description': 'good lighting efficiency', 'low-energy-lighting': 99.26666666666667},

View file

@ -8,7 +8,7 @@ import random
class TestEpcRecord:
@pytest.fixture
@pytest.fixture()
def cleaning_data(self):
with open("recommendations/tests/test_data/cleaning_data.pkl", "rb") as f:
data = pickle.load(f)

View file

@ -11,21 +11,21 @@ from recommendations.tests.test_data.heating_recommendations_data import testing
class TestHeatingRecommendations:
@pytest.fixture
@pytest.fixture()
def cleaning_data(self):
with open("recommendations/tests/test_data/cleaning_data.pkl", "rb") as f:
data = pickle.load(f)
return data
@pytest.fixture
@pytest.fixture()
def cleaned(self):
with open("recommendations/tests/test_data/cleaned.pkl", "rb") as f:
df = pickle.load(f)
return df
@pytest.fixture
@pytest.fixture()
def kwh_client(self):
client = KwhData(bucket="retrofit-data-dev", read_consumption_data=False)
# We fix this pricing table for these tests