From c728c255556becc0de6fe73d45008f75f838cb68 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 22 Jul 2023 16:25:14 -0700 Subject: [PATCH] Undo change which broke the tests --- sqlite_utils/cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sqlite_utils/cli.py b/sqlite_utils/cli.py index 46becdf..00b3d6a 100644 --- a/sqlite_utils/cli.py +++ b/sqlite_utils/cli.py @@ -3106,8 +3106,7 @@ def plugins_list(): click.echo(json.dumps(get_plugins(), indent=2)) -if not getattr(sys, "_called_from_test", False): - pm.hook.register_commands(cli=cli) +pm.hook.register_commands(cli=cli) def _render_common(title, values):