Skip to content

Commit

Permalink
fix code format
Browse files Browse the repository at this point in the history
Task BOTS-6396:
- fix code format in tests;
- change pybotx version in pyproject.toml;
  • Loading branch information
depostnykh committed Jun 22, 2023
1 parent 9f4c49c commit 4f7a5f0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 77 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pybotx"
version = "0.55.5"
version = "0.55.6"
description = "A python library for interacting with eXpress BotX API"
authors = [
"Sidnev Nikolay <nsidnev@ccsteam.ru>",
Expand Down
20 changes: 4 additions & 16 deletions tests/client/events_api/test_edit_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ async def test__edit_message__maximum_edit_succeed(
"command": "/bubble-button",
"data": {},
"label": "Bubble button",
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand All @@ -101,10 +98,7 @@ async def test__edit_message__maximum_edit_succeed(
"command": "/keyboard-button",
"data": {},
"label": "Keyboard button",
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand Down Expand Up @@ -240,10 +234,7 @@ async def test__edit__succeed(
"command": "/bubble-button",
"data": {},
"label": "Bubble button",
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand All @@ -253,10 +244,7 @@ async def test__edit__succeed(
"command": "/keyboard-button",
"data": {},
"label": "Keyboard button",
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand Down
20 changes: 4 additions & 16 deletions tests/client/events_api/test_reply_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ async def test__reply_message__maximum_filled_reply_succeed(
"command": "/bubble-button",
"label": "Bubble button",
"data": {},
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand All @@ -112,10 +109,7 @@ async def test__reply_message__maximum_filled_reply_succeed(
"command": "/keyboard-button",
"label": "Keyboard button",
"data": {},
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand Down Expand Up @@ -215,10 +209,7 @@ async def test__reply__succeed(
"command": "/bubble-button",
"label": "Bubble button",
"data": {},
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand All @@ -228,10 +219,7 @@ async def test__reply__succeed(
"command": "/keyboard-button",
"label": "Keyboard button",
"data": {},
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand Down
20 changes: 4 additions & 16 deletions tests/client/notifications_api/test_direct_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ async def test__send__succeed(
"command": "/bubble-button",
"data": {},
"label": "Bubble button",
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand All @@ -74,10 +71,7 @@ async def test__send__succeed(
"command": "/keyboard-button",
"data": {},
"label": "Keyboard button",
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand Down Expand Up @@ -211,10 +205,7 @@ async def test__answer_message__succeed(
"command": "/bubble-button",
"data": {},
"label": "Bubble button",
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand All @@ -224,10 +215,7 @@ async def test__answer_message__succeed(
"command": "/keyboard-button",
"data": {},
"label": "Keyboard button",
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand Down
35 changes: 7 additions & 28 deletions tests/client/notifications_api/test_markup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ async def test__markup__defaults_filled(
"command": "/bubble-button",
"data": {},
"label": "Bubble button",
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand All @@ -58,10 +55,7 @@ async def test__markup__defaults_filled(
"command": "/keyboard-button",
"data": {},
"label": "Keyboard button",
"opts": {
"silent": True,
"align": "center"
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand Down Expand Up @@ -139,50 +133,35 @@ async def test__markup__correctly_built(
"command": "/bubble-button-1",
"data": {},
"label": "Bubble button 1",
"opts": {
"silent": True,
"align": 'center'
},
"opts": {"silent": True, "align": "center"},
},
{
"command": "/bubble-button-2",
"data": {},
"label": "Bubble button 2",
"opts": {
"silent": True,
"align": 'center'
},
"opts": {"silent": True, "align": "center"},
},
],
[
{
"command": "/bubble-button-3",
"data": {},
"label": "Bubble button 3",
"opts": {
"silent": True,
"align": 'center'
},
"opts": {"silent": True, "align": "center"},
},
],
[
{
"command": "/bubble-button-4",
"data": {},
"label": "Bubble button 4",
"opts": {
"silent": True,
"align": 'center'
},
"opts": {"silent": True, "align": "center"},
},
{
"command": "/bubble-button-5",
"data": {},
"label": "Bubble button 5",
"opts": {
"silent": True,
"align": 'center'
},
"opts": {"silent": True, "align": "center"},
},
],
],
Expand Down

0 comments on commit 4f7a5f0

Please sign in to comment.