Skip to content

Commit

Permalink
Update test_model_grants.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmeireles authored Jan 9, 2025
1 parent 780c23d commit 51a2478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/adapter/grants/test_model_grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ 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]]}
expected_grants = {select_privilege_name: ["user:" + test_users[0]]}
assert model.config.grants == expected
assert model.config.materialized == "view"
self.assert_expected_grants_match_actual(project, "my_model", expected_grants)
Expand Down Expand Up @@ -130,4 +130,4 @@ def test_view_table_grants(self, project, get_test_users):
expected = {select_privilege_name: ["user:" + test_users[0]], insert_privilege_name: ["user:" + test_users[1]]}
project.adapter.config.credentials.database = "dbt_test_source"
project.adapter.config.credentials.schema = "dbtdremios3" + "." + project.created_schemas[0]
self.assert_expected_grants_match_actual(project, "my_model", expected)
self.assert_expected_grants_match_actual(project, "my_model", expected)

0 comments on commit 51a2478

Please sign in to comment.