forked from iterative/dvc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part of iterative#3777
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import logging | ||
|
||
from dvc.stage import Stage | ||
from dvc.stage.run import run_stage | ||
|
||
|
||
def test_run_stage_dry(caplog): | ||
with caplog.at_level(level=logging.INFO, logger="dvc"): | ||
run_stage(Stage(None, cmd="mycmd arg1 arg2"), dry=True) | ||
assert caplog.messages == ["Running command:\n\tmycmd arg1 arg2"] |