Skip to content

Commit

Permalink
use dynamic schema in test_grant_access_to.py
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Jul 21, 2023
1 parent 1f80a20 commit 5570022
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/functional/adapter/test_grant_access_to.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ def test_grant_access_succeeds(self, project):


class TestAccessGrantFails:
@pytest.fixture(scope="class", autouse=True)
def setup(self, project):
with project.adapter.connection_named("__test_grants"):
relation = project.adapter.Relation.create(
database=project.database, schema=f"{project.test_schema}_seeds"
)
yield relation
project.adapter.drop_relation(relation)
@pytest.fixture(scope="class")
def models(self):
return {
Expand Down

0 comments on commit 5570022

Please sign in to comment.