Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbanin committed Nov 28, 2016
1 parent 9f09052 commit 9b38656
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/integration/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
DBT_CONFIG_DIR = os.environ.get('DBT_CONFIG_DIR', '/root/.dbt')
DBT_PROFILES = os.path.join(DBT_CONFIG_DIR, "profiles.yml")


expected_profiles_dir = os.listdir("C:/Users/appveyor/.dbt")
profiles_dir = os.path.join(os.path.expanduser('~'), '.dbt')
print("# Looked for profiles.yml in: {}".format(profiles_dir))
print("# Should be: {}".format(expected_profiles_dir))
print("# Found: {}".format(os.listdir(profiles_dir)))
print("# Profiles: {}".format(project.read_profiles()))

class DBTIntegrationTest(unittest.TestCase):

def setUp(self):
Expand Down Expand Up @@ -65,6 +57,14 @@ def setUp(self):
with open(DBT_PROFILES, 'w') as f:
yaml.safe_dump(profile_config, f, default_flow_style=True)


expected_profiles_dir = os.listdir("C:/Users/appveyor/.dbt")
profiles_dir = os.path.join(os.path.expanduser('~'), '.dbt')
print("# Home dir: {}".format(profiles_dir))
print("# Should be: {}".format(expected_profiles_dir))
print("# Found: {}".format(os.listdir(profiles_dir)))
print("# Profiles: {}".format(project.read_profiles()))

self.run_sql("DROP SCHEMA IF EXISTS {} CASCADE;".format(self.schema))
self.run_sql("CREATE SCHEMA {};".format(self.schema))

Expand Down

0 comments on commit 9b38656

Please sign in to comment.