Skip to content

Commit

Permalink
test: Fix grant test env var (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin authored Dec 19, 2022
1 parent 2aeddc1 commit e347c3b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/functional/adapter/test_grants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import os
from unittest import mock

from dbt.tests.adapter.grants.base_grants import BaseGrants
from dbt.tests.adapter.grants.test_incremental_grants import (
BaseIncrementalGrants,
Expand Down Expand Up @@ -25,6 +28,18 @@ class TestGrantsFailWithException(BaseGrants):
grant functionality in Firebolt.
"""

@fixture(autouse=True)
def env_setup(monkeypatch):
with mock.patch.dict(
os.environ,
{
'DBT_TEST_USER_1': 'dummy-user1',
'DBT_TEST_USER_2': 'dummy-user2',
'DBT_TEST_USER_3': 'dummy-user3',
},
):
yield

@fixture(scope='class')
def models(self):
updated_schema = self.interpolate_name_overrides(model_schema_yml)
Expand Down

0 comments on commit e347c3b

Please sign in to comment.