From 622ca2182c589392e1afe29a9c7735219d8ca40b Mon Sep 17 00:00:00 2001 From: Friendly-Banana <69007475+Friendly-Banana@users.noreply.github.com> Date: Fri, 26 Jul 2024 18:29:04 +0200 Subject: [PATCH] =?UTF-8?q?StuBistro=20Gro=C3=9Fhadern=20has=20been=20rena?= =?UTF-8?q?med=20to=20StuBistro=20Butenandstra=C3=9Fe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entities.py | 4 ++-- src/menu_parser.py | 2 +- src/test/assets/enum_to_json/reference/canteens.json | 2 +- .../for-generation/2024-07-29.html | 0 .../for-generation/2024-07-30.html | 0 .../for-generation/2024-07-31.html | 0 .../for-generation/2024-08-01.html | 0 .../for-generation/2024-08-02.html | 0 .../for-generation/2024-08-05.html | 0 .../for-generation/2024-08-06.html | 0 .../for-generation/2024-08-07.html | 0 .../for-generation/2024-08-08.html | 0 .../for-generation/2024-08-09.html | 0 .../reference/combined.json | 2 +- src/test/test_menu_parser.py | 2 +- 15 files changed, 6 insertions(+), 6 deletions(-) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/for-generation/2024-07-29.html (100%) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/for-generation/2024-07-30.html (100%) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/for-generation/2024-07-31.html (100%) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/for-generation/2024-08-01.html (100%) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/for-generation/2024-08-02.html (100%) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/for-generation/2024-08-05.html (100%) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/for-generation/2024-08-06.html (100%) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/for-generation/2024-08-07.html (100%) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/for-generation/2024-08-08.html (100%) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/for-generation/2024-08-09.html (100%) rename src/test/assets/studentenwerk/{stubistro-grosshadern => stubistro-butenandstr}/reference/combined.json (99%) diff --git a/src/entities.py b/src/entities.py index 3dfde5776f..b541e1ae5a 100644 --- a/src/entities.py +++ b/src/entities.py @@ -226,8 +226,8 @@ def __init__(self, long_name: str, location: Location, url_id: int, queue_status None, OpenHours(("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00"), ("11:00", "14:00")), ) - STUBISTRO_GROSSHADERN = ( - "StuBistro Großhadern", + STUBISTRO_BUTENANDSTR = ( + "StuBistro Butenandstraße", Location( "Butenandtstraße 13, Gebäude F, München", 48.11363, diff --git a/src/menu_parser.py b/src/menu_parser.py index 23eeb745fa..67c27e98af 100644 --- a/src/menu_parser.py +++ b/src/menu_parser.py @@ -71,7 +71,7 @@ class StudentenwerkMenuParser(MenuParser): Canteen.MENSA_WEIHENSTEPHAN, Canteen.STUBISTRO_ARCISSTR, Canteen.STUBISTRO_GOETHESTR, - Canteen.STUBISTRO_GROSSHADERN, + Canteen.STUBISTRO_BUTENANDSTR, Canteen.STUBISTRO_ROSENHEIM, Canteen.STUBISTRO_SCHELLINGSTR, Canteen.STUBISTRO_MARTINSRIED, diff --git a/src/test/assets/enum_to_json/reference/canteens.json b/src/test/assets/enum_to_json/reference/canteens.json index c654e184f9..7968dec1cc 100644 --- a/src/test/assets/enum_to_json/reference/canteens.json +++ b/src/test/assets/enum_to_json/reference/canteens.json @@ -304,7 +304,7 @@ "latitude": 48.11363, "longitude": 11.46503 }, - "canteen_id": "stubistro-grosshadern", + "canteen_id": "stubistro-butenandstr", "queue_status": null, "open_hours": { "mon": { diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-07-29.html b/src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-07-29.html similarity index 100% rename from src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-07-29.html rename to src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-07-29.html diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-07-30.html b/src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-07-30.html similarity index 100% rename from src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-07-30.html rename to src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-07-30.html diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-07-31.html b/src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-07-31.html similarity index 100% rename from src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-07-31.html rename to src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-07-31.html diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-01.html b/src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-01.html similarity index 100% rename from src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-01.html rename to src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-01.html diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-02.html b/src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-02.html similarity index 100% rename from src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-02.html rename to src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-02.html diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-05.html b/src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-05.html similarity index 100% rename from src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-05.html rename to src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-05.html diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-06.html b/src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-06.html similarity index 100% rename from src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-06.html rename to src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-06.html diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-07.html b/src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-07.html similarity index 100% rename from src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-07.html rename to src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-07.html diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-08.html b/src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-08.html similarity index 100% rename from src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-08.html rename to src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-08.html diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-09.html b/src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-09.html similarity index 100% rename from src/test/assets/studentenwerk/stubistro-grosshadern/for-generation/2024-08-09.html rename to src/test/assets/studentenwerk/stubistro-butenandstr/for-generation/2024-08-09.html diff --git a/src/test/assets/studentenwerk/stubistro-grosshadern/reference/combined.json b/src/test/assets/studentenwerk/stubistro-butenandstr/reference/combined.json similarity index 99% rename from src/test/assets/studentenwerk/stubistro-grosshadern/reference/combined.json rename to src/test/assets/studentenwerk/stubistro-butenandstr/reference/combined.json index e3176e2f96..21be0a61f7 100644 --- a/src/test/assets/studentenwerk/stubistro-grosshadern/reference/combined.json +++ b/src/test/assets/studentenwerk/stubistro-butenandstr/reference/combined.json @@ -1,6 +1,6 @@ { "version": "2.1", - "canteen_id": "stubistro-grosshadern", + "canteen_id": "stubistro-butenandstr", "weeks": [ { "number": 31, diff --git a/src/test/test_menu_parser.py b/src/test/test_menu_parser.py index 976b6e067b..e98021e07f 100644 --- a/src/test/test_menu_parser.py +++ b/src/test/test_menu_parser.py @@ -66,7 +66,7 @@ def test_get_all_dates(self) -> None: self.assertEqual(dates, working_days) def test_studentenwerk(self) -> None: - canteens = [Canteen.MENSA_ARCISSTR, Canteen.STUBISTRO_GROSSHADERN, Canteen.MENSA_GARCHING] + canteens = [Canteen.MENSA_ARCISSTR, Canteen.STUBISTRO_BUTENANDSTR, Canteen.MENSA_GARCHING] for canteen in canteens: self.__test_studentenwerk_canteen(canteen)