mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:39:12 +00:00
[red-knot] Very minor simplification of the render tests (#16759)
This commit is contained in:
parent
3a32e56445
commit
a128ca761f
1 changed files with 2 additions and 2 deletions
|
@ -643,7 +643,7 @@ mod tests {
|
|||
|
||||
use crate::diagnostic::{Annotation, DiagnosticId, Severity, Span};
|
||||
use crate::files::system_path_to_file;
|
||||
use crate::system::{DbWithTestSystem, SystemPath, WritableSystem};
|
||||
use crate::system::{DbWithWritableSystem, SystemPath};
|
||||
use crate::tests::TestDb;
|
||||
|
||||
use super::*;
|
||||
|
@ -2025,7 +2025,7 @@ watermelon
|
|||
/// Add a file with the given path and contents to this environment.
|
||||
fn add(&mut self, path: &str, contents: &str) {
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue