Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add lowercase feature to prev fn
Browse files Browse the repository at this point in the history
adrian-codecov committed Mar 8, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent 978492d commit 4c0c80d
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shared/torngit/github.py
Original file line number Diff line number Diff line change
@@ -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

4 changes: 2 additions & 2 deletions tests/integration/test_github.py
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 4c0c80d

Please sign in to comment.