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 cb5429a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/dbt/plugins/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
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.
from .manager import dbtPlugin, dbt_hook # noqa

PLUGIN_MANAGER: Optional[PluginManager] = None
PLUGIN_MANAGER: PluginManager = PluginManager()


def setup_plugin_manager():
Expand All @@ -17,6 +13,4 @@ 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!")
return PLUGIN_MANAGER

0 comments on commit cb5429a

Please sign in to comment.