Skip to content

Commit 92f7e15

Browse files
committed
fix jobs test
1 parent e0d5951 commit 92f7e15

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

integration/tests/posit/connect/test_jobs.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
from . import CONNECT_VERSION
99

1010

11+
@pytest.mark.skipif(
12+
CONNECT_VERSION <= version.parse("2023.01.1"),
13+
reason="Quarto not available",
14+
)
1115
class TestJobs:
1216
@classmethod
1317
def setup_class(cls):
@@ -19,10 +23,6 @@ def teardown_class(cls):
1923
cls.content.delete()
2024
assert cls.client.content.count() == 0
2125

22-
@pytest.mark.skipif(
23-
CONNECT_VERSION <= version.parse("2023.01.1"),
24-
reason="Quarto not available",
25-
)
2626
def test(self):
2727
content = self.content
2828

@@ -46,7 +46,8 @@ def test_find_by(self):
4646
path = str(path)
4747

4848
bundle = content.bundles.create(path)
49-
bundle.deploy()
49+
task = bundle.deploy()
50+
task.wait_for()
5051

51-
jobs = content.jobs.find_by()
52+
jobs = content.jobs.reload()
5253
assert len(jobs) != 0

0 commit comments

Comments
 (0)