8000 djangorestframework bump (#2063) · GitDakky/botbuilder-python@b4770e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit b4770e5

Browse files
tracyboehrerTracy Boehrer
and
Tracy Boehrer
authored
djangorestframework bump (microsoft#2063)
Co-authored-by: Tracy Boehrer <trboehre@microsoft.com>
1 parent 489d547 commit b4770e5

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

libraries/botbuilder-applicationinsights/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
TESTS_REQUIRES = [
1414
"aiounittest==1.3.0",
1515
"django==3.2.21", # For samples
16-
"djangorestframework==3.10.3", # For samples
16+
"djangorestframework==3.14.0", # For samples
1717
"flask==2.2.5", # For samples
1818
]
1919

libraries/botbuilder-core/botbuilder/core/teams/teams_info.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
teams_get_meeting_info,
1111
teams_get_channel_data,
1212
)
13-
from botbuilder.core import CloudAdapterBase, BotFrameworkAdapter, TurnContext, BotAdapter
13+
from botbuilder.core import (
14+
CloudAdapterBase,
15+
BotFrameworkAdapter,
16+
TurnContext,
17+
BotAdapter,
18+
)
1419
from botbuilder.schema import Activity, ConversationParameters, ConversationReference
1520
from botbuilder.schema.teams import (
1621
ChannelInfo,
@@ -323,7 +328,7 @@ async def _get_connector_client(turn_context: TurnContext) -> ConnectorClient:
323328
)
324329

325330
if connector_client is None:
326-
raise ValueError('This method requires a connector client.')
331+
raise ValueError("This method requires a connector client.")
327332

328333
return connector_client
329334

libraries/botbuilder-core/tests/teams/test_teams_activity_handler.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,12 @@ async def test_on_teams_members_added_activity(self):
592592

593593
turn_context = TurnContext(SimpleAdapter(), activity)
594594

595-
mock_connector_client = await SimpleAdapter.create_connector_client(self, turn_context.activity.service_url)
596-
turn_context.turn_state[BotAdapter.BOT_CONNECTOR_CLIENT_KEY] = mock_connector_client
595+
mock_connector_client = await SimpleAdapter.create_connector_client(
596+
self, turn_context.activity.service_url
597+
)
598+
turn_context.turn_state[
599+
BotAdapter.BOT_CONNECTOR_CLIENT_KEY
600+
] = mock_connector_client
597601

598602
# Act
599603
bot = TestingTeamsActivityHandler()

libraries/botbuilder-integration-applicationinsights-aiohttp/botbuilder/integration/applicationinsights/aiohttp/aiohttp_telemetry_middleware.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ def retrieve_aiohttp_body():
1919
@middleware
2020
async def bot_telemetry_middleware(request, handler):
2121
"""Process the incoming Flask request."""
22-
if "Content-Type" in request.headers and request.headers["Content-Type"] == "application/json":
22+
if (
23+
"Content-Type" in request.headers
24+
and request.headers["Content-Type"] == "application/json"
25+
):
2326
body = await request.json()
2427
_REQUEST_BODIES[current_thread().ident] = body
2528

0 commit comments

Comments
 (0)
0