Skip to content

Commit

Permalink
Fix quote placement
Browse files Browse the repository at this point in the history
  • Loading branch information
totycro committed Dec 3, 2024
1 parent 549a583 commit 1f2b1a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pygeoapi_kubernetes_papermill/log_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_job_logs(job_id):
response = requests.get(
log_query_endpoint,
params={
"query": f'{{job="{namespace}/{job_id}}}"',
"query": f'{{job="{namespace}/{job_id}"}}',
},
)
response.raise_for_status()
Expand Down
4 changes: 3 additions & 1 deletion tests/test_log_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def test_log_view_returns_log_lines(client, mock_loki_request):

response = client.get(f"/jobs/{job_id}/logs")

assert mock_loki_request.mock_calls[0][2]["params"]["query"] == "{job=test/abc-123}"
assert (
mock_loki_request.mock_calls[0][2]["params"]["query"] == '{job="test/abc-123"}'
)

assert response.status_code == 200
assert len(response.text.splitlines()) == 4
Expand Down

0 comments on commit 1f2b1a0

Please sign in to comment.