Skip to content

Commit

Permalink
Add seeds to default_project_cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
clrcrl committed Aug 28, 2018
1 parent aa06a8a commit 8587bd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions dbt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ def get_config_paths(config, path=None, paths=None):
def get_project_resource_config_paths(project):
resource_config_paths = {}
for resource_type in ['models', 'seeds']:
if resource_type in project:
resource_config_paths[resource_type] = get_config_paths(
project[resource_type])
resource_config_paths[resource_type] = get_config_paths(
project[resource_type])
return resource_config_paths


Expand Down
1 change: 1 addition & 0 deletions dbt/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'outputs': {'default': {}},
'target': 'default',
'models': {},
'seeds': {},
'quoting': {},
'profile': None,
'packages': [],
Expand Down
4 changes: 2 additions & 2 deletions test/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ def test__explicit_opt_in(self):
self.assertTrue(dbt.config.colorize_output(config))

def test__no_unused_resource_config_paths(self):
resource_config = {'models': model_config}
resource_config = {'models': model_config, 'seeds': {}}
resource_config_paths = dbt.config.get_project_resource_config_paths(
resource_config)
resource_fqns = {'models': model_fqns}
self.assertTrue(len(dbt.config.get_unused_resource_config_paths(
resource_config_paths, resource_fqns)) == 0)

def test__unused_resource_config_paths(self):
resource_config = {'models': model_config['my_package_name']}
resource_config = {'models': model_config['my_package_name'], 'seeds': {}}
resource_config_paths = dbt.config.get_project_resource_config_paths(
resource_config)
resource_fqns = {'models': model_fqns}
Expand Down

0 comments on commit 8587bd4

Please sign in to comment.