From 100a39ae24be4ff429e833be796613675ce9e014 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Wed, 22 May 2024 14:48:01 +0330 Subject: [PATCH 1/2] fix: mediaWiki platform name! aligning the name with other microservices. --- dags/hivemind_etl_helpers/src/utils/modules/mediawiki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/hivemind_etl_helpers/src/utils/modules/mediawiki.py b/dags/hivemind_etl_helpers/src/utils/modules/mediawiki.py index 92c9f6e1..d718f7e7 100644 --- a/dags/hivemind_etl_helpers/src/utils/modules/mediawiki.py +++ b/dags/hivemind_etl_helpers/src/utils/modules/mediawiki.py @@ -3,7 +3,7 @@ class ModulesMediaWiki(ModulesBase): def __init__(self) -> None: - self.platform_name = "mediawiki" + self.platform_name = "mediaWiki" super().__init__() def get_learning_platforms( From d21a08ac0b4e87acd8753a9808e1fc8a6b9ef92d Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Wed, 22 May 2024 15:47:37 +0330 Subject: [PATCH 2/2] fix: name on test cases! --- .../tests/integration/test_mediawiki_modules.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dags/hivemind_etl_helpers/tests/integration/test_mediawiki_modules.py b/dags/hivemind_etl_helpers/tests/integration/test_mediawiki_modules.py index 93d247c9..1f1e1463 100644 --- a/dags/hivemind_etl_helpers/tests/integration/test_mediawiki_modules.py +++ b/dags/hivemind_etl_helpers/tests/integration/test_mediawiki_modules.py @@ -25,7 +25,7 @@ def test_get_single_data(self): self.client["Core"]["platforms"].insert_one( { "_id": platform_id, - "name": "mediawiki", + "name": "mediaWiki", "metadata": { "pageIds": [ "Main_Page", @@ -48,7 +48,7 @@ def test_get_single_data(self): "platforms": [ { "platform": platform_id, - "name": "mediawiki", + "name": "mediaWiki", "metadata": { "api_url": "http://example.com/api", }, @@ -89,14 +89,14 @@ def test_get_mediawiki_communities_data_multiple_platforms(self): "platforms": [ { "platform": platform_id1, - "name": "mediawiki", + "name": "mediaWiki", "metadata": { "api_url": "http://example1.com/api", }, }, { "platform": platform_id2, - "name": "mediawiki", + "name": "mediaWiki", "metadata": { "api_url": "http://example2.com/api", }, @@ -109,7 +109,7 @@ def test_get_mediawiki_communities_data_multiple_platforms(self): self.client["Core"]["platforms"].insert_one( { "_id": platform_id1, - "name": "mediawiki", + "name": "mediaWiki", "metadata": { "pageIds": [ "Main_Page", @@ -127,7 +127,7 @@ def test_get_mediawiki_communities_data_multiple_platforms(self): self.client["Core"]["platforms"].insert_one( { "_id": platform_id2, - "name": "mediawiki", + "name": "mediaWiki", "metadata": { "pageIds": [ "Sandbox",