File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 105
105
"grpcio~=1.43.0" ,
106
106
"grpcio-tools~=1.43.0" ,
107
107
"protobuf~=3.19.3" ,
108
- "azure-functions==1.10.1 "
108
+ "azure-functions==1.11.0 "
109
109
]
110
110
111
111
EXTRA_REQUIRES = {
Original file line number Diff line number Diff line change @@ -35,10 +35,12 @@ def test_cosmosdb_trigger(self):
35
35
response = r .json ()
36
36
response .pop ('_metadata' , None )
37
37
38
- self .assertEqual (
39
- response ,
40
- doc
41
- )
38
+ self .assertEqual (doc ["id" ], response ["id" ])
39
+ self .assertEqual (doc ["data" ], response ["data" ])
40
+ self .assertIsNotNone (response ["_etag" ])
41
+ self .assertIsNotNone (response ["_rid" ])
42
+ self .assertIsNotNone (response ["_self" ])
43
+ self .assertIsNotNone (response ["_ts" ])
42
44
except AssertionError :
43
45
if try_no == max_retries - 1 :
44
46
raise
@@ -67,10 +69,12 @@ def test_cosmosdb_input(self):
67
69
self .assertEqual (r .status_code , 200 )
68
70
response = r .json ()
69
71
70
- self .assertEqual (
71
- response ,
72
- doc
73
- )
72
+ self .assertEqual (doc ["id" ], response ["id" ])
73
+ self .assertEqual (doc ["data" ], response ["data" ])
74
+ self .assertIsNotNone (response ["_etag" ])
75
+ self .assertIsNotNone (response ["_rid" ])
76
+ self .assertIsNotNone (response ["_self" ])
77
+ self .assertIsNotNone (response ["_ts" ])
74
78
except AssertionError :
75
79
if try_no == max_retries - 1 :
76
80
raise
You can’t perform that action at this time.
0 commit comments