diff --git a/src/test.rs b/src/test.rs index 07c6986144..bee3d8901e 100644 --- a/src/test.rs +++ b/src/test.rs @@ -15,6 +15,8 @@ use crate::{ source_code::{Indexer, Locator, Stylist}, }; +/// A convenient wrapper around [`check_path`], that additionally +/// asserts that autofixes converge after 10 iterations. pub fn test_path(path: &Path, settings: &Settings) -> Result> { let contents = fs::read_file(path)?; let tokens: Vec = rustpython_helpers::tokenize(&contents);