Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Apr 19, 2024
1 parent ca9b1d3 commit f64fcf5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/functional/dependencies/test_local_dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

0 comments on commit f64fcf5

Please sign in to comment.