Skip to content

Commit

Permalink
Add test that checks if targets were successfully deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
feluelle committed Oct 21, 2020
1 parent 8b4d74e commit 5af82c3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,6 @@ def _run_simple_dbt_commands(self, project_dir):
self.run_dbt(['run', '--project-dir', project_dir])
self.run_dbt(['test', '--project-dir', project_dir])
self.run_dbt(['clean', '--project-dir', project_dir])
# In case of 'dbt clean' also test that the clean-targets directories were deleted.
for target in self.config.clean_targets:
assert not os.path.isdir(target)

0 comments on commit 5af82c3

Please sign in to comment.