Skip to content

Commit

Permalink
Reformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
PredaaA committed Feb 20, 2022
1 parent 9a45115 commit 48c5d44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion lavalink/lavalink.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ async def initialize(
return lavalink_node



async def connect(channel: discord.VoiceChannel, deafen: bool = False):
"""
Connects to a discord voice channel.
Expand Down
4 changes: 1 addition & 3 deletions tests/test_player_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def func(user_id=bot.user.id, channel_id=voice_channel.id, guild_id=voice_channe
@pytest.mark.asyncio
async def test_autoconnect(bot, voice_channel, voice_server_update, voice_state_update):
node = lavalink.node.get_node(voice_channel.guild.id)
node._players_dict[voice_channel.guild.id] = lavalink.player_manager.Player(
bot, voice_channel
)
node._players_dict[voice_channel.guild.id] = lavalink.player_manager.Player(bot, voice_channel)
player = node.get_player(voice_channel.guild.id)
assert voice_channel.guild.id in set(node.guild_ids)

Expand Down

0 comments on commit 48c5d44

Please sign in to comment.