Skip to content

Commit

Permalink
fix: method name
Browse files Browse the repository at this point in the history
  • Loading branch information
nidemidovich committed Jul 18, 2022
1 parent 0fb91ba commit 1fc6e2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pybotx/bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ async def search_user_by_ad(

return botx_api_user_from_search.to_domain()

async def search_by_other_id(
async def search_user_by_other_id(
self,
*,
bot_id: UUID,
Expand Down
4 changes: 2 additions & 2 deletions tests/client/users_api/test_search_user_by_other_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def test__search_user_by_other_id__user_not_found_error_raised(
# - Act -
async with lifespan_wrapper(built_bot) as bot:
with pytest.raises(UserNotFoundError) as exc:
await bot.search_by_other_id(
await bot.search_user_by_other_id(
bot_id=bot_id,
other_id="some_id",
)
Expand Down Expand Up @@ -94,7 +94,7 @@ async def test__search_user_by_other_id__succeed(

# - Act -
async with lifespan_wrapper(built_bot) as bot:
user = await bot.search_by_other_id(
user = await bot.search_user_by_other_id(
bot_id=bot_id,
other_id="some_id",
)
Expand Down

0 comments on commit 1fc6e2b

Please sign in to comment.