Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/hm-dsl-engine/harmont-py/tests/test_setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""`.setup()` splices a prep step into a toolchain's install chain so that
action leaves fork from it. One parametrized test over every install-bearing
toolchain object."""

from __future__ import annotations

import json
Expand Down
10 changes: 8 additions & 2 deletions crates/hm/tests/cmd_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@ fn init_rust_creates_pipeline_py() {
assert!(pipeline.exists(), "expected {}", pipeline.display());

let content = std::fs::read_to_string(&pipeline).unwrap();
assert!(content.contains("@hm.pipeline"), "expected pipeline decorator");
assert!(
content.contains("@hm.pipeline"),
"expected pipeline decorator"
);
assert!(
content.contains("hm.rust.project("),
"expected rust.project() entrypoint, got:\n{content}"
);
assert!(content.contains(".ci()"), "expected the one-call .ci() DAG, got:\n{content}");
assert!(
content.contains(".ci()"),
"expected the one-call .ci() DAG, got:\n{content}"
);
assert!(
!content.contains("rust.toolchain("),
"template should not use the legacy toolchain() API, got:\n{content}"
Expand Down
Loading