diff --git a/uk_bin_collection/tests/council_schemas/RhonddaCynonTaffCouncil.schema b/uk_bin_collection/tests/council_schemas/RhonddaCynonTaffCouncil.schema new file mode 100644 index 0000000000..c5d3d3da0c --- /dev/null +++ b/uk_bin_collection/tests/council_schemas/RhonddaCynonTaffCouncil.schema @@ -0,0 +1,39 @@ +{ + "$schema": "http://json-schema.org/draft-06/schema#", + "$ref": "#/definitions/Welcome1", + "definitions": { + "Welcome1": { + "type": "object", + "additionalProperties": false, + "properties": { + "bins": { + "type": "array", + "items": { + "$ref": "#/definitions/Bin" + } + } + }, + "required": [ + "bins" + ], + "title": "Welcome1" + }, + "Bin": { + "type": "object", + "additionalProperties": false, + "properties": { + "type": { + "type": "string" + }, + "collectionDate": { + "type": "string" + } + }, + "required": [ + "collectionDate", + "type" + ], + "title": "Bin" + } + } +} diff --git a/uk_bin_collection/tests/features/validate_council_outputs.feature b/uk_bin_collection/tests/features/validate_council_outputs.feature index 17287d30b3..30e1573b2b 100644 --- a/uk_bin_collection/tests/features/validate_council_outputs.feature +++ b/uk_bin_collection/tests/features/validate_council_outputs.feature @@ -64,6 +64,7 @@ Feature: Test each council output matches expected results in /outputs | NorthumberlandCouncil | | PrestonCityCouncil | | ReigateAndBansteadBoroughCouncil | + | RhonddaCynonTaffCouncil | | RochdaleCouncil | | RushcliffeBoroughCouncil | | RushmoorCouncil | diff --git a/uk_bin_collection/tests/input.json b/uk_bin_collection/tests/input.json index 6c5eb676ac..d423763d22 100644 --- a/uk_bin_collection/tests/input.json +++ b/uk_bin_collection/tests/input.json @@ -365,6 +365,13 @@ "wiki_name": "Reigate and Banstead Borough Council", "wiki_note": "To get the UPRN, you can use [FindMyAddress](https://www.findmyaddress.co.uk/search)" }, + "RhonddaCynonTaffCouncil": { + "SKIP_GET_URL": "SKIP_GET_URL", + "uprn": "100100778320", + "url": "https://www.rctcbc.gov.uk/EN/Resident/RecyclingandWaste/RecyclingandWasteCollectionDays.aspx", + "wiki_name": "Rhondda Cynon Taff Council", + "wiki_note": "To get the UPRN, you can use [FindMyAddress](https://www.findmyaddress.co.uk/search)" + }, "RochdaleCouncil": { "SKIP_GET_URL": "SKIP_GET_URL", "postcode": "OL11 5BE", diff --git a/uk_bin_collection/tests/outputs/RhonddaCynonTaffCouncil.json b/uk_bin_collection/tests/outputs/RhonddaCynonTaffCouncil.json new file mode 100644 index 0000000000..83230ff671 --- /dev/null +++ b/uk_bin_collection/tests/outputs/RhonddaCynonTaffCouncil.json @@ -0,0 +1,20 @@ +{ + "bins": [ + { + "type": "Recycling", + "collectionDate": "17/10/2023" + }, + { + "type": "Garden Waste", + "collectionDate": "17/10/2023" + }, + { + "type": "Food Waste", + "collectionDate": "17/10/2023" + }, + { + "type": "Black Bags", + "collectionDate": "24/10/2023" + } + ] +} \ No newline at end of file