From 2aa1e860c20fbc63ae9e402d3f476d02b92b8309 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Fri, 9 Jun 2023 13:40:18 -0400 Subject: [PATCH] Update retrieve job integration tests (#900) * update retrieve job integration tests * refactor test * typo --- test/integration/test_retrieve_job.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/integration/test_retrieve_job.py b/test/integration/test_retrieve_job.py index 5d4798bea..ea272b9f9 100644 --- a/test/integration/test_retrieve_job.py +++ b/test/integration/test_retrieve_job.py @@ -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( @@ -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)