-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from codeforkjeff/dbt-1-3-0-compat
dbt 1.3.0 compatibility
- Loading branch information
Showing
9 changed files
with
97 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from dbt.tests.util import ( | ||
run_dbt, | ||
check_relations_equal, | ||
rm_file, | ||
write_file | ||
) | ||
from dbt.tests.adapter.concurrency.test_concurrency import ( | ||
BaseConcurrency, | ||
seeds__update_csv | ||
) | ||
|
||
|
||
class TestConncurenncySqlite(BaseConcurrency): | ||
|
||
def test_conncurrency_sqlite(self, project): | ||
run_dbt(["seed", "--select", "seed"]) | ||
results = run_dbt(["run"], expect_pass=False) | ||
assert len(results) == 7 | ||
check_relations_equal(project.adapter, ["SEED", "VIEW_MODEL"]) | ||
check_relations_equal(project.adapter, ["SEED", "DEP"]) | ||
check_relations_equal(project.adapter, ["SEED", "TABLE_A"]) | ||
check_relations_equal(project.adapter, ["SEED", "TABLE_B"]) | ||
|
||
rm_file(project.project_root, "seeds", "seed.csv") | ||
write_file(seeds__update_csv, project.project_root + '/seeds', "seed.csv") | ||
results = run_dbt(["run"], expect_pass=False) | ||
assert len(results) == 7 | ||
check_relations_equal(project.adapter, ["SEED", "VIEW_MODEL"]) | ||
check_relations_equal(project.adapter, ["SEED", "DEP"]) | ||
check_relations_equal(project.adapter, ["SEED", "TABLE_A"]) | ||
check_relations_equal(project.adapter, ["SEED", "TABLE_B"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from dbt.tests.adapter.ephemeral.test_ephemeral import BaseEphemeralMulti | ||
from dbt.tests.util import run_dbt, check_relations_equal | ||
|
||
|
||
class TestEphemeralMultiSqlite(BaseEphemeralMulti): | ||
|
||
def test_ephemeral_multi_sqlite(self, project): | ||
run_dbt(["seed"]) | ||
results = run_dbt(["run"]) | ||
assert len(results) == 3 | ||
check_relations_equal(project.adapter, ["SEED", "DEPENDENT", "DOUBLE_DEPENDENT", "SUPER_DEPENDENT"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters