Skip to content

Commit

Permalink
Merge pull request #406 from UKGovernmentBEIS/PC-1465-Stop-old-EPCs-s…
Browse files Browse the repository at this point in the history
…howing-in-EPC-select

PC-1465: Updated test
  • Loading branch information
Glenn-Clarke authored Dec 5, 2024
2 parents ebb3bd7 + 9de4117 commit 3efd093
Show file tree
Hide file tree
Showing 4 changed files with 294 additions and 98 deletions.
5 changes: 5 additions & 0 deletions help_to_heat/frontdoor/mock_epc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ def get_epc_recommendations(self, lmk_key):
return load_test_reponse("sample_epc_recommendations_response.json")


class MockEPCApiWithMultipleEPC(MockEPCApi):
def search_epc_details(self, building, postcode):
return load_test_reponse("sample_search_response_with_multiple_epc.json")


class MockEPCApiWithEPCC(MockEPCApi):
def get_epc_details(self, rrn):
epc = load_test_reponse("sample_epc_response.json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,100 +281,6 @@
"low-energy-lighting": "0",
"walls-description": "Sandstone, as built, no insulation (assumed)",
"hotwater-description": "Electric immersion, standard tariff"
},
{
"low-energy-fixed-light-count": "",
"address": "22 Acacia Avenue, Upper Wellgood, Fulchester, FL23 4JA",
"uprn-source": "Address Matched",
"floor-height": "2.833",
"heating-cost-potential": "1100",
"unheated-corridor-length": "2.05",
"hot-water-cost-potential": "166",
"construction-age-band": "England and Wales: before 1900",
"potential-energy-rating": "F",
"mainheat-energy-eff": "Very Poor",
"windows-env-eff": "Average",
"lighting-energy-eff": "Very Poor",
"environment-impact-potential": "28",
"glazed-type": "double glazing, unknown install date",
"heating-cost-current": "1916",
"address3": "",
"mainheatcont-description": "Programmer and appliance thermostats",
"sheating-energy-eff": "N/A",
"property-type": "Maisonette",
"local-authority-label": "Westminster",
"fixed-lighting-outlets-count": "",
"energy-tariff": "Unknown",
"mechanical-ventilation": "natural",
"hot-water-cost-current": "365",
"county": "Greater London Authority",
"postcode": "FL23 4JA",
"solar-water-heating-flag": "N",
"constituency": "E14000639",
"co2-emissions-potential": "9.9",
"number-heated-rooms": "3",
"floor-description": "(other premises below)",
"energy-consumption-potential": "602",
"local-authority": "E09000033",
"built-form": "NO DATA!",
"number-open-fireplaces": "0",
"windows-description": "Fully double glazed",
"glazed-area": "Normal",
"inspection-date": "2010-07-20",
"mains-gas-flag": "N",
"co2-emiss-curr-per-floor-area": "81",
"address1": "22 Acacia Avenue",
"heat-loss-corridor": "unheated corridor",
"flat-storey-count": "5.0",
"constituency-label": "Cities of London and Westminster",
"roof-energy-eff": "Very Poor",
"total-floor-area": "109.021",
"building-reference-number": "8502528768",
"environment-impact-current": "33",
"co2-emissions-current": "8.8",
"roof-description": "Pitched, no insulation (assumed)",
"floor-energy-eff": "N/A",
"number-habitable-rooms": "3",
"address2": "Upper Wellgood",
"hot-water-env-eff": "Poor",
"posttown": "Fulchester",
"mainheatc-energy-eff": "Good",
"main-fuel": "electricity - this is for backwards compatibility only and should not be used",
"lighting-env-eff": "Very Poor",
"windows-energy-eff": "Average",
"floor-env-eff": "N/A",
"sheating-env-eff": "N/A",
"lighting-description": "No low energy lighting",
"roof-env-eff": "Very Poor",
"walls-energy-eff": "Very Poor",
"photo-supply": "0.0",
"lighting-cost-potential": "136",
"mainheat-env-eff": "Poor",
"multi-glaze-proportion": "100",
"main-heating-controls": "2603",
"lodgement-datetime": "2010-07-20 16:38:12",
"flat-top-storey": "Y",
"current-energy-rating": "G",
"secondheat-description": "None",
"walls-env-eff": "Very Poor",
"transaction-type": "rental (private)",
"uprn": "001234567890",
"current-energy-efficiency": "8",
"energy-consumption-current": "538",
"mainheat-description": "Room heaters, electric",
"lighting-cost-current": "121",
"lodgement-date": "2010-07-20",
"extension-count": "0",
"mainheatc-env-eff": "Good",
"lmk-key": "333333333333333333333333333333333",
"wind-turbine-count": "0",
"tenure": "rental (private)",
"floor-level": "3rd",
"potential-energy-efficiency": "35",
"hot-water-energy-eff": "Very Poor",
"low-energy-lighting": "0",
"walls-description": "Sandstone, as built, no insulation (assumed)",
"hotwater-description": "Electric immersion, standard tariff"
}
]
}
Loading

0 comments on commit 3efd093

Please sign in to comment.