-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/functional tests 1.3.0 (#61)
* inherited more tests for v1.3 * tests naming fix, xFail to some tests added * version bump & poetry update --------- Co-authored-by: ilikutle <ilija.kutle@alligator-company.com> Co-authored-by: Torsten Glunde <torsten.glunde@alligator-company.com>
- Loading branch information
1 parent
95d986d
commit 670fa33
Showing
7 changed files
with
956 additions
and
923 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
import pytest | ||
from pathlib import Path | ||
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 TestConcurrencyExasol(BaseConcurrency): | ||
def test_conncurrency_snowflake(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 @@ | ||
import pytest | ||
from dbt.tests.adapter.ephemeral.test_ephemeral import BaseEphemeralMulti | ||
from dbt.tests.util import run_dbt, check_relations_equal | ||
|
||
class TestEphemeralMultiExasol(BaseEphemeralMulti): | ||
|
||
def test_ephemeral_multi_snowflake(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