Skip to content

Commit

Permalink
change up test input for schema_relation
Browse files Browse the repository at this point in the history
  • Loading branch information
McKnight-42 committed Jan 8, 2024
1 parent 91b43ca commit 2991d01
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test__snowflake__list_relations_without_caching_termination(self, project):
schemas = project.created_schemas

for schema in schemas:
schema_relation = f"{database}.{schema}"
schema_relation = {"database": database, "schema": schema}
kwargs = {"schema_relation": schema_relation}
_, log_output = run_dbt_and_capture(
[
Expand Down Expand Up @@ -149,7 +149,7 @@ def test__snowflake__list_relations_without_caching(self, project):
schemas = project.created_schemas

for schema in schemas:
schema_relation = f"{database}.{schema}"
schema_relation = {"database": database, "schema": schema}
kwargs = {"schema_relation": schema_relation}
_, log_output = run_dbt_and_capture(
[
Expand All @@ -161,7 +161,6 @@ def test__snowflake__list_relations_without_caching(self, project):
str(kwargs),
]
)

parsed_logs = parse_json_logs(log_output)
n_relations = find_result_in_parsed_logs(parsed_logs, "n_relations")

Expand All @@ -178,7 +177,8 @@ def test__snowflake__list_relations_without_caching_raise_error(self, project):
schemas = project.created_schemas

for schema in schemas:
schema_relation = f"{database}.{schema}"
schema_relation = {"database": database, "schema": schema}

kwargs = {"schema_relation": schema_relation}
_, log_output = run_dbt_and_capture(
[
Expand All @@ -191,7 +191,6 @@ def test__snowflake__list_relations_without_caching_raise_error(self, project):
],
expect_pass=False,
)

parsed_logs = parse_json_logs(log_output)
traceback = find_exc_info_in_parsed_logs(parsed_logs, "Traceback")
assert "dbt will list a maximum of 99 objects in schema " in traceback

0 comments on commit 2991d01

Please sign in to comment.