File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 55These tests will test the CacheFactory class and the creation of each cache type that is natively supported.
66"""
77
8+ import sys
9+
810import pytest
911
1012from graphrag .cache .factory import CacheFactory
1921# cspell:disable-next-line well-known-key
2022WELL_KNOWN_COSMOS_CONNECTION_STRING = "AccountEndpoint=https://127.0.0.1:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="
2123
24+
2225def 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+ )
5057def test_create_cosmosdb_cache ():
5158 kwargs = {
5259 "connection_string" : WELL_KNOWN_COSMOS_CONNECTION_STRING ,
You can’t perform that action at this time.
0 commit comments