From f64fcf5d6eb4df8bf4d8fbdbc2767c7b24188204 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Fri, 19 Apr 2024 09:47:13 -0500 Subject: [PATCH] add test --- .../functional/dependencies/test_local_dependency.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/functional/dependencies/test_local_dependency.py b/tests/functional/dependencies/test_local_dependency.py index 04391e0c872..85c0fd99fe6 100644 --- a/tests/functional/dependencies/test_local_dependency.py +++ b/tests/functional/dependencies/test_local_dependency.py @@ -353,3 +353,15 @@ def test_local_dependency_same_name_sneaky(self, prepare_dependencies, project): # needed to avoid compilation errors from duplicate package names in test autocleanup run_dbt(["clean"]) + + +class TestEmptyDependency: + @pytest.fixture(scope="class") + def packages(self): + return {"packages": [{"local": ""}]} + + def test_local_dependency_empty(self, project): + with pytest.raises( + dbt.exceptions.DbtProjectError, match="A local package is missing the value" + ): + run_dbt(["deps"])