Skip to content

Commit

Permalink
Update imports of dbt.artifacts to pre-dbt.artifacts locations
Browse files Browse the repository at this point in the history
Moving things to dbt.artifacts started to happen AFTER the release of
dbt-core 1.7, thus 1.7 has no concept of dbt.articacts. The changes brought
in via the previous commit, were cherry-picked from main (1.8.0 beta) and
thus reference dbt.artifacts. This caused everything to blow up, because
dbt.artifacts doesn't exist. Here we've updated the dbt.artifacts imports
to their pre-dbt.artifacts paths.
  • Loading branch information
QMalcolm committed Mar 27, 2024
1 parent a890906 commit 8997590
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/functional/sources/test_source_freshness.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
from datetime import datetime, timedelta

import dbt.version
from dbt.artifacts.schemas.freshness import FreshnessResult
from dbt.artifacts.schemas.results import FreshnessStatus
from dbt.cli.main import dbtRunner
from dbt.contracts.results import FreshnessResult, FreshnessStatus
from tests.functional.sources.common_source_setup import BaseSourcesTest
from tests.functional.sources.fixtures import (
error_models_schema_yml,
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import pytest

from dbt.artifacts.resources import Quoting, SourceConfig
from dbt.artifacts.resources.types import NodeType
from dbt.contracts.graph.model_config import SourceConfig
from dbt.contracts.graph.nodes import SourceDefinition
from dbt.contracts.graph.unparsed import Quoting
from dbt.node_types import NodeType


@pytest.fixture
Expand Down

0 comments on commit 8997590

Please sign in to comment.