Skip to content

Commit

Permalink
Added functional test for quota project
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpenter12 committed Oct 24, 2024
1 parent f9646a7 commit 3ab27f8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/functional/test_quota_project.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import os

import pytest

from dbt.tests.util import run_dbt

_QUOTA_PROJECT = os.getenv("BIGQUERY_TEST_ALT_DATABASE")


class TestNoQuotaProject:
def test_no_quota_project(self, project):
results = run_dbt()
for result in results:
assert None == result.adapter_response["quota_project"]


class TestQuotaProjectOption:
@pytest.fixture(scope="class")
def profiles_config_update(self, dbt_profile_target):
outputs = {"default": dbt_profile_target}
outputs["default"]["quota_project"] = _QUOTA_PROJECT
yield

def test_quota_project_option(self, project):
results = run_dbt()
for result in results:
assert _QUOTA_PROJECT == result.adapter_response["quota_project"]

0 comments on commit 3ab27f8

Please sign in to comment.