This repository was archived by the owner on Apr 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ def get_job_url(
336336 """
337337 if project_id is None or location is None or job_id is None :
338338 return None
339- return f"""https://console.cloud. google.com/bigquery?project={ project_id } &j=bq:{ location } :{ job_id } &page=queryresults"""
339+ return f"""https://console.cloud.google.com/bigquery?project={ project_id } &j=bq:{ location } :{ job_id } &page=queryresults"""
340340
341341
342342def render_bqquery_sent_event_html (
Original file line number Diff line number Diff line change @@ -197,3 +197,18 @@ def test_render_bqquery_finished_event_plaintext():
197197 assert "finished" in text
198198 assert "1.0 kB processed" in text
199199 assert "Slot time: 2 seconds" in text
200+
201+
202+ def test_get_job_url ():
203+ job_id = "my-job-id"
204+ location = "us-central1"
205+ project_id = "my-project"
206+ expected_url = (
207+ f"https://console.cloud.google.com/bigquery?project={ project_id } "
208+ f"&j=bq:{ location } :{ job_id } &page=queryresults"
209+ )
210+
211+ actual_url = formatting_helpers .get_job_url (
212+ job_id = job_id , location = location , project_id = project_id
213+ )
214+ assert actual_url == expected_url
You can’t perform that action at this time.
0 commit comments