Skip to content

Commit

Permalink
test(python): should test for incremental not view
Browse files Browse the repository at this point in the history
  • Loading branch information
devmessias committed Oct 2, 2024
1 parent 6f2741f commit 111ef65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/parser/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ def model(dbt, session):
import pandas as pd
def model(dbt, session):
dbt.config(materialized="view")
dbt.config(materialized="incremental")
return pd.dataframe([1, 2])
"""

Expand Down Expand Up @@ -1199,7 +1199,7 @@ def test_python_model_custom_materialization(self):
self.parser.manifest.files[block.file.file_id] = block.file
self.parser.parse_file(block)
node = list(self.parser.manifest.nodes.values())[0]
self.assertEqual(node.get_materialization(), "view")
self.assertEqual(node.get_materialization(), "incremental")


class StaticModelParserTest(BaseParserTest):
Expand Down

0 comments on commit 111ef65

Please sign in to comment.