Skip to content

Commit 1d90a2a

Browse files
committed
Adjust unit tests so they don't interact directly with scanner
1 parent ab647de commit 1d90a2a

2 files changed

Lines changed: 330 additions & 284 deletions

File tree

rust/src/filesystem.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,13 @@ impl PyFakeBasicFileSystem {
262262
fn read(&self, file_name: &str) -> PyResult<String> {
263263
self.inner.read(file_name)
264264
}
265+
266+
// Temporary workaround method for Python tests.
267+
fn convert_to_basic(&self) -> PyResult<Self> {
268+
Ok(PyFakeBasicFileSystem {
269+
inner: self.inner.clone()
270+
})
271+
}
265272
}
266273

267274
/// Parses an indented string representing a file system structure

0 commit comments

Comments
 (0)