mirror of https://github.com/astral-sh/ruff
Fix integration tests
This commit is contained in:
parent
03e4f5be8a
commit
48e3c046b0
|
|
@ -23,7 +23,7 @@ fn test_stdin_error() -> Result<()> {
|
||||||
.failure();
|
.failure();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
str::from_utf8(&output.get_output().stdout)?,
|
str::from_utf8(&output.get_output().stdout)?,
|
||||||
"Found 1 error(s).\n-:1:8: F401 `os` imported but unused\n1 potentially fixable with the \
|
"-:1:8: F401 `os` imported but unused\nFound 1 error(s).\n1 potentially fixable with the \
|
||||||
--fix option.\n"
|
--fix option.\n"
|
||||||
);
|
);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
@ -39,7 +39,7 @@ fn test_stdin_filename() -> Result<()> {
|
||||||
.failure();
|
.failure();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
str::from_utf8(&output.get_output().stdout)?,
|
str::from_utf8(&output.get_output().stdout)?,
|
||||||
"Found 1 error(s).\nF401.py:1:8: F401 `os` imported but unused\n1 potentially fixable \
|
"F401.py:1:8: F401 `os` imported but unused\nFound 1 error(s).\n1 potentially fixable \
|
||||||
with the --fix option.\n"
|
with the --fix option.\n"
|
||||||
);
|
);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue