Implement D410 (EmptyDocstring) (#395)

This commit is contained in:
Charlie Marsh 2022-10-10 15:15:38 -04:00 committed by GitHub
parent 323a5c857c
commit 71d3a84b14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 95 additions and 4 deletions

View file

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