Skip to content

Commit

Permalink
Update retrieve job integration tests (#900)
Browse files Browse the repository at this point in the history
* update retrieve job integration tests

* refactor test

* typo
  • Loading branch information
kt474 authored Jun 9, 2023
1 parent 3985479 commit 2aa1e86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/integration/test_retrieve_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def test_retrieve_job_done(self, service):
self.assertEqual(self.program_ids[service.channel], rjob.program_id)

@run_integration_test
@quantum_only
def test_lazy_loading_params(self, service):
"""Test lazy loading job params."""
job = self._run_program(
Expand Down Expand Up @@ -148,13 +149,11 @@ def test_retrieve_jobs_by_program_id(self, service):
@run_integration_test
def test_retrieve_jobs_by_job_tags(self, service):
"""Test retrieving jobs by job_tags."""
job_tags = ["test_tag"]
job_tags = ["job_tag_test"]
job = self._run_program(service, job_tags=job_tags)
job.wait_for_final_state()
rjobs = service.jobs(job_tags=job_tags)
self.assertEqual(
1, len(rjobs), f"Retrieved jobs: {[j.job_id() for j in rjobs]}"
)
self.assertIn(job.job_id(), [j.job_id() for j in rjobs])
rjobs = service.jobs(job_tags=["no_test_tag"])
self.assertFalse(rjobs)

Expand Down

0 comments on commit 2aa1e86

Please sign in to comment.