Skip to content

Commit 25f71e8

Browse files
Update tests/dbt/test_docs.py
Co-authored-by: Themis Valtinos <73662635+themisvaltinos@users.noreply.github.com>
1 parent b516083 commit 25f71e8

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tests/dbt/test_docs.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,22 @@
55
pytestmark = pytest.mark.dbt
66

77

8-
def test_docs_inline(sushi_test_project: Project):
8+
@pytest.mark.xdist_group("dbt_manifest")
9+
def test_docs_inline():
10+
project_path = Path("tests/fixtures/dbt/sushi_test")
11+
profile = Profile.load(DbtContext(project_path))
12+
13+
helper = ManifestHelper(
14+
project_path,
15+
project_path,
16+
"sushi",
17+
profile.target,
18+
model_defaults=ModelDefaultsConfig(start="2020-01-01"),
19+
)
20+
# Inline description in yaml
21+
assert helper.models()["waiters"].description == "waiters docs block"
22+
23+
assert helper.models()["top_waiters"].description == "description of top waiters"
924
# Inline description in yaml
1025
top_waiters = sushi_test_project.context._models["top_waiters"]
1126
assert top_waiters.description == "description of top waiters"

0 commit comments

Comments
 (0)