MCPcopy
hub / github.com/celery/celery / test_get

Method test_get

t/unit/backends/test_cosmosdbsql.py:95–101  ·  view source on GitHub ↗
(self, mock_client)

Source from the content-addressed store, hash-verified

93
94 @patch(MODULE_TO_MOCK + ".CosmosDBSQLBackend._client")
95 def test_get(self, mock_client):
96 self.backend.get(b"mykey")
97
98 mock_client.ReadDocument.assert_has_calls(
99 [call("dbs/celerydb/colls/celerycol/docs/mykey",
100 {"partitionKey": "mykey"}),
101 call().get("value")])
102
103 @patch(MODULE_TO_MOCK + ".CosmosDBSQLBackend._client")
104 def test_get_missing(self, mock_client):

Callers

nothing calls this directly

Calls 2

callFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected