diff --git a/integration/tests/posit/connect/test_jobs.py b/integration/tests/posit/connect/test_jobs.py index 496ccc66..100b70c9 100644 --- a/integration/tests/posit/connect/test_jobs.py +++ b/integration/tests/posit/connect/test_jobs.py @@ -8,6 +8,10 @@ from . import CONNECT_VERSION +@pytest.mark.skipif( + CONNECT_VERSION <= version.parse("2023.01.1"), + reason="Quarto not available", +) class TestJobs: @classmethod def setup_class(cls): @@ -19,10 +23,6 @@ def teardown_class(cls): cls.content.delete() assert cls.client.content.count() == 0 - @pytest.mark.skipif( - CONNECT_VERSION <= version.parse("2023.01.1"), - reason="Quarto not available", - ) def test(self): content = self.content @@ -46,7 +46,8 @@ def test_find_by(self): path = str(path) bundle = content.bundles.create(path) - bundle.deploy() + task = bundle.deploy() + task.wait_for() - jobs = content.jobs.find_by() + jobs = content.jobs.reload() assert len(jobs) != 0