Skip to content

Commit

Permalink
Mark reaction test conditional to reaction-based interface
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletcafe committed Jul 7, 2021
1 parent c8388d4 commit efb4082
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_paginator.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ def test_wrapped_paginator():
assert len(paginator.pages) == 2


@pytest.mark.skipif(
discord.version_info >= (2, 0, 0),
reason="Tests with the reaction model of the paginator interface"
)
@utils.run_async
async def test_paginator_interface():
async def test_paginator_interface_reactions():
bot = commands.Bot('?')

with open(__file__, 'rb') as file:
Expand Down Expand Up @@ -322,3 +326,5 @@ async def test_paginator_interface():
await asyncio.sleep(0.1)

assert interface.closed

# TODO: Write test for interactions-based paginator interface

0 comments on commit efb4082

Please sign in to comment.