diff --git a/test/integration/049_dbt_debug_test/test_debug.py b/test/integration/049_dbt_debug_test/test_debug.py index 1f41a75ee77..131accee723 100644 --- a/test/integration/049_dbt_debug_test/test_debug.py +++ b/test/integration/049_dbt_debug_test/test_debug.py @@ -91,6 +91,18 @@ def models(self): def capsys(self, capsys): self.capsys = capsys + @use_profile('postgres') + def test_postgres_empty_project(self): + with open('dbt_project.yml', 'w') as f: + pass + self.run_dbt(['debug', '--profile', 'test']) + splitout = self.capsys.readouterr().out.split('\n') + for line in splitout: + if line.strip().startswith('dbt_project.yml file'): + self.assertIn('ERROR invalid', line) + elif line.strip().startswith('profiles.yml file'): + self.assertNotIn('ERROR invalid', line) + @use_profile('postgres') def test_postgres_badproject(self): # load a special project that is an error