Skip to content

Commit f8176f9

Browse files
committed
disabling analytical storage tests while running against emulator (for the time being)
1 parent 297b027 commit f8176f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sdk/cosmos/azure-cosmos/test/test_crud.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,6 +2631,10 @@ def test_get_resource_with_dictionary_and_object(self):
26312631
self.assertEqual(read_permission.id, created_permission.id)
26322632

26332633
def test_create_container_with_analytical_store_off(self):
2634+
# don't run test, for the time being, if running against the emulator
2635+
if 'localhost' in self.host or '127.0.0.1' in self.host:
2636+
return
2637+
26342638
created_db = self.databaseForTest
26352639
collection_id = 'test_create_container_with_analytical_store_off_' + str(uuid.uuid4())
26362640
collection_indexing_policy = {'indexingMode': 'consistent'}
@@ -2644,6 +2648,10 @@ def test_create_container_with_analytical_store_off(self):
26442648
self.assertTrue(ttl_key not in properties or properties[ttl_key] == None)
26452649

26462650
def test_create_container_with_analytical_store_on(self):
2651+
# don't run test, for the time being, if running against the emulator
2652+
if 'localhost' in self.host or '127.0.0.1' in self.host:
2653+
return
2654+
26472655
created_db = self.databaseForTest
26482656
collection_id = 'test_create_container_with_analytical_store_on_' + str(uuid.uuid4())
26492657
collection_indexing_policy = {'indexingMode': 'consistent'}

0 commit comments

Comments
 (0)