Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b2cb0a5
Added Cross partition query tests for sync and async APIs
kushagraThapar Dec 1, 2023
a3fcabb
Added license header for new files
kushagraThapar Dec 1, 2023
bc81ab2
Updated database and container creation
kushagraThapar Dec 4, 2023
187b3d2
Updated python tests with setup and tear down
kushagraThapar Dec 8, 2023
f589e48
Fixed some tests cases
kushagraThapar Dec 8, 2023
40cf21e
Fixed spelling
kushagraThapar Dec 8, 2023
998b997
Added emulator CI
kushagraThapar Dec 12, 2023
f7d9ca4
Merged latest main and resolved conflicts
kushagraThapar Jan 12, 2024
cbaf26e
Removed python 3.7 emulator tests config
kushagraThapar Jan 12, 2024
d1434ae
Removed collection crud tests from emulator
kushagraThapar Jan 17, 2024
ade8a78
Merged latest main and resolved conflicts
kushagraThapar Jan 17, 2024
c7ccc22
Updated some collection heavy tests to skip for emulator
kushagraThapar Jan 17, 2024
cafc996
Fixing python 3.10
kushagraThapar Jan 18, 2024
b763f8b
Marking test_computed_properties async test to run only in live tests
kushagraThapar Jan 22, 2024
d95157a
Merge branch 'main' into azure_cosmos_add_cross_partition_query_tests
kushagraThapar Jan 22, 2024
7a34c7e
Fixed emulator tests with pytest fixtures
kushagraThapar Jan 29, 2024
c05e65c
Fixed more emulator tests with pytest fixtures
kushagraThapar Jan 30, 2024
6252619
Fixed more emulator tests with pytest fixtures
kushagraThapar Jan 31, 2024
420d639
Fixed more emulator tests with pytest fixtures and updated azure core…
kushagraThapar Feb 1, 2024
acbb98a
Fixed flaky tests
kushagraThapar Feb 1, 2024
a64f69c
Updated stored procedure create calls
kushagraThapar Feb 1, 2024
06d708c
Fixing sproc test
kushagraThapar Feb 2, 2024
1b85744
Fixing trigger test
kushagraThapar Feb 2, 2024
9b93a8f
Fixing flaky live ci tests
kushagraThapar Feb 5, 2024
499ef27
Fixing max parallel and removed python 3.11 for cosmos emulator windo…
kushagraThapar Feb 5, 2024
8198961
Added MIT license header
kushagraThapar Feb 7, 2024
b51d6f6
Update sdk/cosmos/azure-cosmos/test/test_partition_split_query.py
simorenoh Feb 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed collection crud tests from emulator
  • Loading branch information
kushagraThapar committed Jan 17, 2024
commit d1434ae9386188bebc092d5f46423c32df38f33d
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos/test/test_crud_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def send(self, *args, **kwargs):
return response


@pytest.mark.cosmosEmulator
# @pytest.mark.cosmosEmulator
class TestCRUDAsync(unittest.IsolatedAsyncioTestCase):
"""Python CRUD Tests.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
import unittest
import uuid

import pytest

import azure.cosmos.cosmos_client as cosmos_client
import test_config
from azure.cosmos import PartitionKey, DatabaseProxy
Expand Down Expand Up @@ -60,7 +58,7 @@ def run_queries(container, iterations):
print("validation succeeded for all query results")


@pytest.mark.cosmosEmulator
# @pytest.mark.cosmosEmulator
class TestPartitionSplitQuery(unittest.TestCase):
database: DatabaseProxy = None
client: cosmos_client.CosmosClient = None
Expand Down
6 changes: 1 addition & 5 deletions sdk/cosmos/azure-cosmos/test/test_retry_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,7 @@ def test_default_retry_policy_for_query(self):
self.assertEqual(result_docs[0]['id'], 'doc1')
self.assertEqual(result_docs[1]['id'], 'doc2')

# TODO: Differing result between live and emulator
if 'localhost' in self.host or '127.0.0.1' in self.host:
self.assertEqual(mf.counter, 12)
else:
self.assertEqual(mf.counter, 18)
self.assertEqual(mf.counter, 18)
finally:
_retry_utility.ExecuteFunction = self.original_execute_function

Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos/test/test_ttl.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def test_document_ttl_with_no_defaultTtl(self):

def test_document_ttl_misc(self):
created_collection = self.created_db.create_container_if_not_exists(
id='test_ttl_no_defaultTtl' + str(uuid.uuid4()),
id='test_ttl_defaultTtl' + str(uuid.uuid4()),
partition_key=PartitionKey(path='/id', kind='Hash'),
default_ttl=8
)
Expand Down