@@ -89,22 +89,28 @@ def download_dbt_project(self, *args, **kwargs):
8989
9090
9191def test_dbt_hook_download_dbt_profiles ():
92- """Test dbt hook calls remote correctly."""
92+ """Test dbt hook calls remote correctly.
93+
94+ We ignore types as we are monkey patching a FakeRemote for testing.
95+ """
9396 hook = DbtHook ()
94- hook .remotes [("" , None )] = FakeRemote ()
97+ hook .remotes [("" , None )] = FakeRemote () # type: ignore
9598
96- args , kwargs = hook .download_dbt_profiles ("/path/to/profiles" , "/path/to/store" )
99+ args , kwargs = hook .download_dbt_profiles ("/path/to/profiles" , "/path/to/store" ) # type: ignore
97100
98101 assert args == ("/path/to/profiles" , "/path/to/store" )
99102 assert kwargs == {}
100103
101104
102105def test_dbt_hook_upload_dbt_project ():
103- """Test dbt hook calls remote correctly."""
106+ """Test dbt hook calls remote correctly.
107+
108+ We ignore types as we are monkey patching a FakeRemote for testing.
109+ """
104110 hook = DbtHook ()
105- hook .remotes [("" , None )] = FakeRemote ()
111+ hook .remotes [("" , None )] = FakeRemote () # type: ignore
106112
107- args , kwargs = hook .upload_dbt_project (
113+ args , kwargs = hook .upload_dbt_project ( # type: ignore
108114 "/path/to/profiles" , "/path/to/store" , replace = True , delete_before = True
109115 )
110116
@@ -115,9 +121,9 @@ def test_dbt_hook_upload_dbt_project():
115121def test_dbt_hook_download_dbt_project ():
116122 """Test dbt hook calls remote correctly."""
117123 hook = DbtHook (project_conn_id = "conn_id" )
118- hook .remotes [("" , "conn_id" )] = FakeRemote ()
124+ hook .remotes [("" , "conn_id" )] = FakeRemote () # type: ignore
119125
120- args , kwargs = hook .download_dbt_project ("/path/to/profiles" , "/path/to/store" )
126+ args , kwargs = hook .download_dbt_project ("/path/to/profiles" , "/path/to/store" ) # type: ignore
121127
122128 assert args == ("/path/to/profiles" , "/path/to/store" )
123129 assert kwargs == {}
0 commit comments