Skip to content

Commit 38a5c5d

Browse files
committed
Fix skip logic location
1 parent 6f5c3e3 commit 38a5c5d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

integration/tests/posit/connect/test_system.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import time
22
from pathlib import Path
33

4+
import pytest
45
from packaging import version
56

67
from posit.connect import Client
@@ -10,6 +11,12 @@
1011
from . import CONNECT_VERSION
1112

1213

14+
@pytest.mark.skipif(
15+
# Added to the v2023.05.0 milestone
16+
# https://github.com/rstudio/connect/pull/23148
17+
CONNECT_VERSION < version.parse("2023.05.0"),
18+
reason="Cache runtimes not implemented",
19+
)
1320
class TestSystem:
1421
@classmethod
1522
def setup_class(cls):
@@ -70,8 +77,4 @@ def test_runtime_caches(self):
7077
# Check if the cache is deployed
7178
caches = self.client.system.caches.runtime.find()
7279

73-
# https://github.com/rstudio/connect/pull/23148
74-
# Caches were added in v2023.05.0
75-
# Only assert cache length if the version is >= v2023.05.0
76-
if CONNECT_VERSION >= version.parse("2023.05.0"):
77-
assert len(caches) > 0
80+
assert len(caches) > 0

0 commit comments

Comments
 (0)