Skip to content

Commit

Permalink
fix jobs test
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Nov 8, 2024
1 parent b6d0425 commit 6ead7da
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions integration/tests/posit/connect/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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

Expand All @@ -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

0 comments on commit 6ead7da

Please sign in to comment.