Implement D200 (OneLinerDocstring) (#397)

This commit is contained in:
Charlie Marsh 2022-10-10 16:07:51 -04:00 committed by GitHub
parent 30877127bc
commit b8dce8922d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 103 additions and 24 deletions

View file

@ -978,6 +978,18 @@ mod tests {
Ok(())
}
#[test]
fn d200() -> Result<()> {
let mut checks = check_path(
Path::new("./resources/test/fixtures/D200.py"),
&settings::Settings::for_rule(CheckCode::D200),
&fixer::Mode::Generate,
)?;
checks.sort_by_key(|check| check.location);
insta::assert_yaml_snapshot!(checks);
Ok(())
}
#[test]
fn d400() -> Result<()> {
let mut checks = check_path(