File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
integration/tests/posit/connect Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11import time
22from pathlib import Path
33
4+ import pytest
45from packaging import version
56
67from posit .connect import Client
1011from . 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+ )
1320class 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
You can’t perform that action at this time.
0 commit comments