Skip to content

Commit

Permalink
Address style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-au authored and juanmcloaiza committed Nov 25, 2024
1 parent 7a3abbb commit c33da9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ alma
casda
^^^^^

- Support jobs which are in the SUSPENDED state (used when copying data) [#3133]
- Support jobs which are in the SUSPENDED state (used when copying data) [#3134]

ehst
^^^^
Expand Down
5 changes: 3 additions & 2 deletions astroquery/casda/tests/test_casda.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def get_mockreturn(self, method, url, data=None, timeout=10,
float(pos_parts[2]), float(pos_parts[3]))
return create_soda_create_response('111-000-111-000')
elif str(url).endswith('111-000-111-000') and method == 'GET':
key = "SUSPENDED_JOB" if self.job_pass_num==1 else 'RUN_JOB' if self.job_pass_num==2 else self.completed_job_key
self.job_pass_num+=1
key = "SUSPENDED_JOB" if self.job_pass_num == 1 else 'RUN_JOB' if self.job_pass_num == 2 \
else self.completed_job_key
self.job_pass_num += 1
else:
raise ValueError("Unexpected SODA async {} call to url {}".format(method, url))
elif 'datalink' in str(url):
Expand Down

0 comments on commit c33da9a

Please sign in to comment.