From cc8f8b1ee4485200ba1d22dd28b79ac696641324 Mon Sep 17 00:00:00 2001 From: stijndcl Date: Thu, 23 Jun 2022 11:24:12 +0200 Subject: [PATCH] Try to fix tests --- didier/cogs/owner.py | 1 - tests/conftest.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/didier/cogs/owner.py b/didier/cogs/owner.py index 60fbe78..91fe500 100644 --- a/didier/cogs/owner.py +++ b/didier/cogs/owner.py @@ -36,7 +36,6 @@ class Owner(commands.Cog): self.client.tree.copy_global_to(guild=guild) await self.client.tree.sync(guild=guild) else: - # self.client.tree.clear_commands(guild=None) await self.client.tree.sync() await ctx.message.add_reaction("🔄") diff --git a/tests/conftest.py b/tests/conftest.py index c2c5e0a..3c5761b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -19,7 +19,7 @@ def event_loop() -> Generator: @pytest.fixture(scope="session") -def tables(event_loop): +def tables(): """Initialize a database before the tests, and then tear it down again Starts from an empty database and runs through all the migrations to check those as well while we're at it