From a57d40a709d6aa98223a055b8356ba4b1b69c1fd Mon Sep 17 00:00:00 2001 From: juuso-j <68938778+juuso-j@users.noreply.github.com> Date: Thu, 27 Jun 2024 12:26:52 +0300 Subject: [PATCH 1/3] Fix contract type multilingual description assertions --- services/search/tests/test_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/search/tests/test_api.py b/services/search/tests/test_api.py index d24653dee..048fd4652 100644 --- a/services/search/tests/test_api.py +++ b/services/search/tests/test_api.py @@ -34,15 +34,15 @@ def test_search( assert biological_museum_unit["contract_type"]["id"] == "municipal_service" assert ( biological_museum_unit["contract_type"]["description"]["fi"] - == "municipal_service" + == "kunnallinen palvelu" ) assert ( biological_museum_unit["contract_type"]["description"]["sv"] - == "municipal_service" + == "kommunal tjänst" ) assert ( biological_museum_unit["contract_type"]["description"]["en"] - == "municipal_service" + == "municipal service" ) assert biological_museum_unit["department"]["name"]["fi"] == "Test Department" assert ( From 41665e7e10d8dccbd78e8c25d35d24fa38ddf42d Mon Sep 17 00:00:00 2001 From: Juuso Jokiniemi <68938778+juuso-j@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:26:36 +0300 Subject: [PATCH 2/3] Install gettext --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 4fe59d640..cefddcd32 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -30,7 +30,7 @@ jobs: python-version: 3.10.0 - name: Install required Ubuntu packages run: | - sudo apt-get update && sudo apt-get -y --no-install-recommends install gdal-bin voikko-fi libvoikko-dev + sudo apt-get update && sudo apt-get -y --no-install-recommends install gdal-bin voikko-fi libvoikko-dev gettext sudo apt-get install redis-server - name: Create needed postgis extensions run: | From cecde726c6740e0a270dda6b5e20d2c80d53187c Mon Sep 17 00:00:00 2001 From: Juuso Jokiniemi <68938778+juuso-j@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:33:57 +0300 Subject: [PATCH 3/3] Add Compile messages --- .github/workflows/run-tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index cefddcd32..aa138c41a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -40,6 +40,9 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt + - name: Compile messages + run: | + python manage.py compilemessages - name: Run Python side code neatness tests run: | flake8