Skip to content

Commit c68ecb4

Browse files
committed
fix: line length in Rust project tests
1 parent 508eebf commit c68ecb4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dsls/harmont-py/tests/test_rust.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,17 @@ def test_test_command(self):
190190

191191
def test_test_flags(self):
192192
proj = hm.rust.project(path=".")
193-
assert "cargo test --workspace --locked --lib --no-fail-fast" in proj.test(flags=("--lib", "--no-fail-fast")).cmd
193+
step = proj.test(flags=("--lib", "--no-fail-fast"))
194+
assert "cargo test --workspace --locked --lib --no-fail-fast" in step.cmd
194195

195196
def test_clippy_command(self):
196197
proj = hm.rust.project(path="cli")
197198
assert "cargo clippy --workspace --tests --locked -- -D warnings" in proj.clippy().cmd
198199

199200
def test_clippy_flags(self):
200201
proj = hm.rust.project(path=".")
201-
assert "cargo clippy --workspace --tests --locked --fix -- -D warnings" in proj.clippy(flags=("--fix",)).cmd
202+
step = proj.clippy(flags=("--fix",))
203+
assert "cargo clippy --workspace --tests --locked --fix -- -D warnings" in step.cmd
202204

203205
def test_fmt_command(self):
204206
proj = hm.rust.project(path="cli")

0 commit comments

Comments
 (0)