Skip to content

Commit

Permalink
Adding
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachin-Thakur committed Nov 16, 2023
1 parent 9605e47 commit 60c253c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/vertica-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ jobs:
run: python -m pytest tests/functional/adapter/utils/test_concat.py
- name: Test Data Type Int
run: python -m pytest tests/functional/adapter/utils/data_type/
- name: Test ephemeral
run: python -m pytest tests/functional/adapter/ephemeral/




30 changes: 17 additions & 13 deletions tests/functional/adapter/ephemeral/test_ephemeral.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,23 @@


import pytest
from dbt.tests.adapter.ephemeral.test_ephemeral import BaseEphemeralMulti
from dbt.tests.util import run_dbt, check_relations_equal

class TestEphemeralMultiVertica(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"])
check_relations_equal(project.adapter, ["seed", "dependent"])
check_relations_equal(project.adapter, ["seed", "double_dependent"])
check_relations_equal(project.adapter, ["seed", "super_dependent"])
# from dbt.tests.adapter.ephemeral.test_ephemeral import BaseEphemeralMulti
# from dbt.tests.util import run_dbt, check_relations_equal

# class TestEphemeralMultiVertica(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"])
# # check_relations_equal(project.adapter, ["seed", "dependent", "double_dependent", "super_dependent"])
# # check_relations_equal(project.adapter, ["seed", "dependent", "double_dependent", "super_dependent"])


# check_relations_equal(project.adapter, ["seed", "dependent"])
# check_relations_equal(project.adapter, ["seed", "double_dependent"])
# check_relations_equal(project.adapter, ["seed", "super_dependent"])



0 comments on commit 60c253c

Please sign in to comment.