From 5f3cf30c4296c20dfa52fcaa3be2c56ef72f0c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Sun, 10 Aug 2025 10:50:22 -0800 Subject: [PATCH 1/2] DOC: making sure doctests pass more often --- docs/io/uws.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/io/uws.rst b/docs/io/uws.rst index 0e708d84..6d04553a 100644 --- a/docs/io/uws.rst +++ b/docs/io/uws.rst @@ -28,7 +28,7 @@ UWS job documents can be parsed directly from URLs, files, or strings using the ... ORDER BY phot_g_mean_mag ... """ >>> async_job = tap_service.submit_job(ex_query) - >>> async_job.run().wait() # doctest: +ELLIPSIS + >>> async_job.run().wait() >>> >>> # Parse a single job from a UWS service @@ -39,7 +39,7 @@ UWS job documents can be parsed directly from URLs, files, or strings using the >>> jobs = parse_job_list('http://dc.g-vo.org/tap/async') >>> # Show jobs >>> if len(jobs) >= 1: - ... print(f"Example job: {jobs[0].jobid} is {jobs[0].phase}") # doctest: +ELLIPSIS + ... print(f"Example job: {jobs[0].jobid} is {jobs[0].phase}") Example job: ... is ... >>> >>> print(f"Successfully parsed {len(jobs)} jobs") # doctest: +SKIP @@ -380,9 +380,9 @@ While the examples above focus on individual jobs, you can also parse job lists: >>> # jobs = parse_job_list('job_list.xml') >>> >>> # Iterate through jobs (each is a JobSummary object) - >>> for job in jobs: # doctest: +ELLIPSIS + >>> for job in jobs: ... print(f"Job {job.jobid}: {job.phase}") - Job ...: COMPLETED + Job ... Error Handling From 0615ecaff83ad10eabdd279ffa5ac7bfe3badd33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Sat, 16 Aug 2025 20:58:15 -0800 Subject: [PATCH 2/2] DOC: adding actual example output and ignoring it instead of ellipsing --- docs/io/uws.rst | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/docs/io/uws.rst b/docs/io/uws.rst index 6d04553a..f94dfdbb 100644 --- a/docs/io/uws.rst +++ b/docs/io/uws.rst @@ -381,8 +381,29 @@ While the examples above focus on individual jobs, you can also parse job lists: >>> >>> # Iterate through jobs (each is a JobSummary object) >>> for job in jobs: - ... print(f"Job {job.jobid}: {job.phase}") - Job ... + ... print(f"Job {job.jobid}: {job.phase}") # doctest: +IGNORE_OUTPUT + Job tk7xsqux: PENDING + Job swmua8pe: ERROR + Job e58i7yoa: ERROR + Job 84w2yz8q: COMPLETED + Job 6r51ymds: COMPLETED + Job undl67gs: COMPLETED + Job _wyoqule: COMPLETED + Job ltct6n8d: COMPLETED + Job 71kg_stz: COMPLETED + Job sc9vc_8h: ERROR + Job psn4i8_s: ERROR + Job kbrhcstw: COMPLETED + Job lvzez3fa: COMPLETED + Job l9pfluab: COMPLETED + Job lkv6rlxx: COMPLETED + Job yb77nhg3: COMPLETED + Job vkf4h48y: PENDING + Job xr3g9c4d: ERROR + Job x9xryn2x: COMPLETED + Job wba5foai: COMPLETED + Job pni8axcg: ERROR + Job j6ip1kn_: ERROR Error Handling