mirror of https://github.com/astral-sh/ruff
[red-knot] Very minor simplification of the render tests (#16759)
This commit is contained in:
parent
3a32e56445
commit
a128ca761f
|
|
@ -643,7 +643,7 @@ mod tests {
|
||||||
|
|
||||||
use crate::diagnostic::{Annotation, DiagnosticId, Severity, Span};
|
use crate::diagnostic::{Annotation, DiagnosticId, Severity, Span};
|
||||||
use crate::files::system_path_to_file;
|
use crate::files::system_path_to_file;
|
||||||
use crate::system::{DbWithTestSystem, SystemPath, WritableSystem};
|
use crate::system::{DbWithWritableSystem, SystemPath};
|
||||||
use crate::tests::TestDb;
|
use crate::tests::TestDb;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
@ -2025,7 +2025,7 @@ watermelon
|
||||||
/// Add a file with the given path and contents to this environment.
|
/// Add a file with the given path and contents to this environment.
|
||||||
fn add(&mut self, path: &str, contents: &str) {
|
fn add(&mut self, path: &str, contents: &str) {
|
||||||
let path = SystemPath::new(path);
|
let path = SystemPath::new(path);
|
||||||
self.db.test_system().write_file(path, contents).unwrap();
|
self.db.write_file(path, contents).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Conveniently create a `Span` that points into a file in this
|
/// Conveniently create a `Span` that points into a file in this
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue