From 4c0c80d22b90323d1833ba82739d98d4e8442713 Mon Sep 17 00:00:00 2001 From: Adrian Date: Fri, 8 Mar 2024 13:53:53 -0800 Subject: [PATCH] feat: add lowercase feature to prev fn --- shared/torngit/github.py | 2 +- tests/integration/test_github.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/torngit/github.py b/shared/torngit/github.py index 49af277b2..08585728d 100644 --- a/shared/torngit/github.py +++ b/shared/torngit/github.py @@ -1674,7 +1674,7 @@ async def get_repos_with_languages_graphql( languages = repo["languages"]["edges"] res_languages = [] for language in languages: - res_languages.append(language["node"]["name"]) + res_languages.append(language["node"]["name"].lower()) all_repositories[repo["name"]] = res_languages diff --git a/tests/integration/test_github.py b/tests/integration/test_github.py index 67674fcf1..39128dd88 100644 --- a/tests/integration/test_github.py +++ b/tests/integration/test_github.py @@ -965,8 +965,8 @@ async def test_get_repository(self, valid_handler, codecov_vcr): @pytest.mark.asyncio async def test_get_repo_with_languages_graphql(self, valid_handler, codecov_vcr): expected_result = { - "another-test": ["JavaScript", "HTML", "CSS"], - "new-test-repo": ["HTML", "CSS", "JavaScript"], + "another-test": ["javascript", "html", "css"], + "new-test-repo": ["html", "css", "javascript"], "test-no-languages": [], } owner_username = "adrian-codecov"