Skip to content

Commit

Permalink
Use run_sql instead of run_sql_file
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Oct 4, 2024
1 parent bf9df03 commit 7d266e7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def models(self):
}

def test_snapshot_column_names(self, project):
project.run_sql_file(seed_cn_sql)
project.run_sql(seed_cn_sql)
results = run_dbt(["snapshot"])
assert len(results) == 1

Expand Down Expand Up @@ -163,7 +163,7 @@ def project_config_update(self):
}

def test_snapshot_column_names_from_project(self, project):
project.run_sql_file(seed_cn_sql)
project.run_sql(seed_cn_sql)
results = run_dbt(["snapshot"])
assert len(results) == 1

Expand Down Expand Up @@ -209,7 +209,7 @@ def project_config_update(self):
}

def test_snapshot_invalid_column_names(self, project):
project.run_sql_file(seed_cn_sql)
project.run_sql(seed_cn_sql)
results = run_dbt(["snapshot"])
assert len(results) == 1
manifest = get_manifest(project.project_root)
Expand Down Expand Up @@ -309,7 +309,7 @@ def models(self):
}

def test_valid_to_current(self, project):
project.run_sql_file(seed_dbt_valid_to_sql)
project.run_sql(seed_dbt_valid_to_sql)
results = run_dbt(["snapshot"])
assert len(results) == 1

Expand Down

0 comments on commit 7d266e7

Please sign in to comment.