Skip to content

Commit 273c3dc

Browse files
committed
Unbreak test_cosmosdb_trigger
Azure started to inject the `_metadata` key into CosmosDB JSON, so filter it out.
1 parent d377953 commit 273c3dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_cosmosdb_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def test_cosmosdb_trigger(self):
3030
r = self.webhost.request('GET', 'get_cosmosdb_triggered')
3131
self.assertEqual(r.status_code, 200)
3232
response = r.json()
33+
response.pop('_metadata', None)
3334

3435
self.assertEqual(
3536
response,

0 commit comments

Comments
 (0)