From 77a23f1abcfe5947466d9f7921ea2756b3d80a7f Mon Sep 17 00:00:00 2001 From: rjambrecic <32619626+rjambrecic@users.noreply.github.com> Date: Wed, 28 Aug 2024 11:46:37 +0200 Subject: [PATCH] Add columns which start with 'Sitelink' to the new routes sheet (#89) Co-authored-by: Kumaran Rajendhiran --- google_sheets/data_processing/processing.py | 1 + tests/data_processing/test_processing.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/google_sheets/data_processing/processing.py b/google_sheets/data_processing/processing.py index 872f378..10177d1 100644 --- a/google_sheets/data_processing/processing.py +++ b/google_sheets/data_processing/processing.py @@ -71,6 +71,7 @@ def _validate_language_codes( "Include Location", "Include Language", "Exclude Language", + "Sitelink", ] diff --git a/tests/data_processing/test_processing.py b/tests/data_processing/test_processing.py index 44ffd74..553c686 100644 --- a/tests/data_processing/test_processing.py +++ b/tests/data_processing/test_processing.py @@ -353,6 +353,8 @@ def test_process_data_f( "Include Location 2": "Croatia", "Include Language 1": "English", "Exclude Language 1": "German", + "Sitelink Asset ID 1": "111", + "Sitelink Asset ID 2": "222", } ), pd.Series( @@ -370,6 +372,8 @@ def test_process_data_f( "Include Location 2": "Croatia", "Include Language 1": "English", "Exclude Language 1": "German", + "Sitelink Asset ID 1": "111", + "Sitelink Asset ID 2": "222", } ), ),