• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

microsoft / botbuilder-python / 372200

11 Oct 2023 04:18PM UTC coverage: 67.069% (-2.6%) from 69.649%
372200

push

python-ci

web-flow
Python 3.11 Compatibility (#2022)

* make updates to run tests with 3.11

* run black

* Update botbuilder-python-ci.yml

* update azure devtools

* remove `azure-devtools` due to it being archived

* remove deprecation warning

* lint ignore test files

* ignore tests folder entirely

* Update .pylintrc

* Update .pylintrc

* Update .pylintrc

* only fail on errors

* Update botbuilder-python-ci.yml

* fixes for lint

* test update pylint version

* remove python 3.11 matrix (to be added in separate PR)

10 of 10 new or added lines in 7 files covered. (100.0%)

8998 of 13416 relevant lines covered (67.07%)

0.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/libraries/botframework-connector/botframework/connector/token_api/aio/_token_api_client_async.py
1
# coding=utf-8
2
# --------------------------------------------------------------------------
3
# Copyright (c) Microsoft Corporation. All rights reserved.
4
# Licensed under the MIT License. See License.txt in the project root for
5
# license information.
6
# --------------------------------------------------------------------------
7

8
from msrest.async_client import SDKClientAsync
2✔
9
from msrest import Serializer, Deserializer
2✔
10

11
from .._configuration import TokenApiClientConfiguration
2✔
12
from .operations_async._bot_sign_in_operations_async import BotSignInOperations
2✔
13
from .operations_async._user_token_operations_async import UserTokenOperations
2✔
14
from .. import models
2✔
15

16

17
class TokenApiClient(SDKClientAsync):
2✔
18
    """TokenApiClient
19

20
    :ivar config: Configuration for client.
21
    :vartype config: TokenApiClientConfiguration
22

23
    :ivar bot_sign_in: BotSignIn operations
24
    :vartype bot_sign_in: botframework.tokenapi.aio.operations_async.BotSignInOperations
25
    :ivar user_token: UserToken operations
26
    :vartype user_token: botframework.tokenapi.aio.operations_async.UserTokenOperations
27

28
    :param credentials: Subscription credentials which uniquely identify
29
     client subscription.
30
    :type credentials: None
31
    :param str base_url: Service URL
32
    """
33

34
    def __init__(self, credentials, base_url=None):
2✔
35
        self.config = TokenApiClientConfiguration(credentials, base_url)
×
36
        super(TokenApiClient, self).__init__(self.config)
×
37

38
        client_models = {
×
39
            k: v for k, v in models.__dict__.items() if isinstance(v, type)
40
        }
41
        self.api_version = "token"
×
42
        self._serialize = Serializer(client_models)
×
43
        self._deserialize = Deserializer(client_models)
×
44

45
        self.bot_sign_in = BotSignInOperations(
×
46
            self._client, self.config, self._serialize, self._deserialize
47
        )
48
        self.user_token = UserTokenOperations(
×
49
            self._client, self.config, self._serialize, self._deserialize
50
        )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc