Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Jun 26, 2023
1 parent 7521053 commit 7e37bcb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/dbt/plugins/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from typing import Optional

from dbt.exceptions import DbtInternalError

from .manager import PluginManager

# these are just exports, they need "noqa" so flake8 will not complain.
Expand All @@ -18,5 +15,7 @@ def setup_plugin_manager():
def get_plugin_manager() -> PluginManager:
global PLUGIN_MANAGER
if not PLUGIN_MANAGER:
raise DbtInternalError("get_plugin_manager called before plugin manager is set!")
setup_plugin_manager()

assert PLUGIN_MANAGER
return PLUGIN_MANAGER

0 comments on commit 7e37bcb

Please sign in to comment.