Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tugark committed Sep 2, 2024
1 parent f04f4d0 commit 8f6bd48
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/sonar-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@ jobs:
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.head_ref }}
-Dsonar.pullrequest.base=${{ github.base_ref }}
-Dsonar.scm.provider=git
-Dsonar.pullrequest.provider=GitHub
2 changes: 0 additions & 2 deletions file_with_issue.py

This file was deleted.

2 changes: 1 addition & 1 deletion indexes/search_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def prepare_search_result_for_gb3(index: str, search_result: ObjectApiResponse,
raise HTTPException(status_code=500, detail="Index is not properly configured")

def get_results(index: str, search_result: ObjectApiResponse,
display_string_factory: Callable[dict, str]) -> SearchResult:
display_string_factory: Callable[dict, str], unused: str = "") -> SearchResult:
matches = []
hits = search_result["hits"]["hits"]
for hit in hits:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[tool.pytest.ini_options]
pythonpath = [
"."
]
]

0 comments on commit 8f6bd48

Please sign in to comment.