We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e337a88 commit 778dad7Copy full SHA for 778dad7
2 files changed
sqlite_utils/cli.py
@@ -3106,7 +3106,8 @@ def plugins_list():
3106
click.echo(json.dumps(get_plugins(), indent=2))
3107
3108
3109
-pm.hook.register_commands(cli=cli)
+if not getattr(sys, "_called_from_test", False):
3110
+ pm.hook.register_commands(cli=cli)
3111
3112
3113
def _render_common(title, values):
sqlite_utils/plugins.py
@@ -5,7 +5,7 @@
5
pm = pluggy.PluginManager("sqlite_utils")
6
pm.add_hookspecs(hookspecs)
7
8
-if not hasattr(sys, "_called_from_test"):
9
# Only load plugins if not running tests
10
pm.load_setuptools_entrypoints("sqlite_utils")
11
0 commit comments