Skip to content

Commit 1f011fa

Browse files
committed
skip tests when running on ubuntu
1 parent fd07f35 commit 1f011fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration/cache/test_factory.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
These tests will test the CacheFactory class and the creation of each cache type that is natively supported.
66
"""
77

8+
import sys
9+
810
import pytest
911

1012
from graphrag.cache.factory import CacheFactory
@@ -19,6 +21,7 @@
1921
# cspell:disable-next-line well-known-key
2022
WELL_KNOWN_COSMOS_CONNECTION_STRING = "AccountEndpoint=https://127.0.0.1:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="
2123

24+
2225
def test_create_noop_cache():
2326
kwargs = {}
2427
cache = CacheFactory.create_cache(CacheType.none, kwargs)
@@ -47,6 +50,10 @@ def test_create_blob_cache():
4750
assert isinstance(cache, JsonPipelineCache)
4851

4952

53+
@pytest.mark.skipif(
54+
not sys.platform.startswith("win"),
55+
reason="cosmosdb emulator is only available on windows runners at this time",
56+
)
5057
def test_create_cosmosdb_cache():
5158
kwargs = {
5259
"connection_string": WELL_KNOWN_COSMOS_CONNECTION_STRING,

0 commit comments

Comments
 (0)