1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from ._test_base import _EncodeTest
class EncodeContentTest(_EncodeTest):
def run_sync(self):
for _ in range(self.args.num_values):
self.sync_encoder.encode(self.content, schema=self.definition)
async def run_async(self):
for _ in range(self.args.num_values):
await self.async_encoder.encode(self.content, schema=self.definition)
|