tests: attempt to fix flakey test

This commit is contained in:
Luna 2021-07-09 18:50:32 -03:00
parent 173a2330fe
commit 9293803e11
1 changed files with 7 additions and 7 deletions

View File

@ -63,9 +63,9 @@ async def _delete_guild(test_cli, guild_id: int):
@pytest.mark.asyncio @pytest.mark.asyncio
async def test_guild_fetch(test_cli_staff): async def test_guild_fetch(test_cli_staff):
"""Test the creation and fetching of a guild via the Admin API.""" """Test the creation and fetching of a guild via the Admin API."""
async with test_cli_staff.app.app_context():
rjson = await _create_guild(test_cli_staff) rjson = await _create_guild(test_cli_staff)
guild_id = rjson["id"] guild_id = rjson["id"]
try: try:
await _fetch_guild(test_cli_staff, guild_id) await _fetch_guild(test_cli_staff, guild_id)
finally: finally: