Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmeireles committed Jan 9, 2025
1 parent 51a2478 commit 6bc6a01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/functional/adapter/grants/test_model_grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ def test_view_table_grants(self, project, get_test_users):
model_id = "model.test.my_model"
model = manifest.nodes[model_id]
expected = {select_privilege_name: [test_users[0]]}
expected_grants = {select_privilege_name: ["user:" + test_users[0]]}
assert model.config.grants == expected
expected = {select_privilege_name: ["user:" + test_users[0]]}
assert model.config.materialized == "view"
self.assert_expected_grants_match_actual(project, "my_model", expected_grants)
self.assert_expected_grants_match_actual(project, "my_model", expected)

# View materialization, change select grant user
updated_yaml = self.interpolate_name_overrides(user2_model_schema_yml)
write_file(updated_yaml, project.project_root, "models", "schema.yml")
(results, log_output) = run_dbt_and_capture(["--debug", "run"])
assert len(results) == 1
expected = {select_privilege_name: [get_test_users[1]]}
expected = {select_privilege_name: ["user:" + get_test_users[1]]}
self.assert_expected_grants_match_actual(project, "my_model", expected)


Expand Down

0 comments on commit 6bc6a01

Please sign in to comment.