mirror of https://github.com/astral-sh/ruff
Rename flake8-quotes snapshots and tests (#2415)
This commit is contained in:
parent
15d4774b6b
commit
d601abe01b
|
|
@ -20,8 +20,8 @@ mod tests {
|
||||||
#[test_case(Path::new("doubles_multiline_string.py"))]
|
#[test_case(Path::new("doubles_multiline_string.py"))]
|
||||||
#[test_case(Path::new("doubles_noqa.py"))]
|
#[test_case(Path::new("doubles_noqa.py"))]
|
||||||
#[test_case(Path::new("doubles_wrapped.py"))]
|
#[test_case(Path::new("doubles_wrapped.py"))]
|
||||||
fn doubles(path: &Path) -> Result<()> {
|
fn require_singles(path: &Path) -> Result<()> {
|
||||||
let snapshot = format!("doubles_{}", path.to_string_lossy());
|
let snapshot = format!("require_singles_over_{}", path.to_string_lossy());
|
||||||
let diagnostics = test_path(
|
let diagnostics = test_path(
|
||||||
Path::new("./resources/test/fixtures/flake8_quotes")
|
Path::new("./resources/test/fixtures/flake8_quotes")
|
||||||
.join(path)
|
.join(path)
|
||||||
|
|
@ -50,8 +50,8 @@ mod tests {
|
||||||
#[test_case(Path::new("singles_multiline_string.py"))]
|
#[test_case(Path::new("singles_multiline_string.py"))]
|
||||||
#[test_case(Path::new("singles_noqa.py"))]
|
#[test_case(Path::new("singles_noqa.py"))]
|
||||||
#[test_case(Path::new("singles_wrapped.py"))]
|
#[test_case(Path::new("singles_wrapped.py"))]
|
||||||
fn singles(path: &Path) -> Result<()> {
|
fn require_doubles(path: &Path) -> Result<()> {
|
||||||
let snapshot = format!("singles_{}", path.to_string_lossy());
|
let snapshot = format!("require_doubles_over_{}", path.to_string_lossy());
|
||||||
let diagnostics = test_path(
|
let diagnostics = test_path(
|
||||||
Path::new("./resources/test/fixtures/flake8_quotes")
|
Path::new("./resources/test/fixtures/flake8_quotes")
|
||||||
.join(path)
|
.join(path)
|
||||||
|
|
@ -85,8 +85,8 @@ mod tests {
|
||||||
#[test_case(Path::new("docstring_singles_module_singleline.py"))]
|
#[test_case(Path::new("docstring_singles_module_singleline.py"))]
|
||||||
#[test_case(Path::new("docstring_singles_class.py"))]
|
#[test_case(Path::new("docstring_singles_class.py"))]
|
||||||
#[test_case(Path::new("docstring_singles_function.py"))]
|
#[test_case(Path::new("docstring_singles_function.py"))]
|
||||||
fn double_docstring(path: &Path) -> Result<()> {
|
fn require_docstring_doubles(path: &Path) -> Result<()> {
|
||||||
let snapshot = format!("double_docstring_{}", path.to_string_lossy());
|
let snapshot = format!("require_docstring_doubles_over_{}", path.to_string_lossy());
|
||||||
let diagnostics = test_path(
|
let diagnostics = test_path(
|
||||||
Path::new("./resources/test/fixtures/flake8_quotes")
|
Path::new("./resources/test/fixtures/flake8_quotes")
|
||||||
.join(path)
|
.join(path)
|
||||||
|
|
@ -120,8 +120,8 @@ mod tests {
|
||||||
#[test_case(Path::new("docstring_singles_module_singleline.py"))]
|
#[test_case(Path::new("docstring_singles_module_singleline.py"))]
|
||||||
#[test_case(Path::new("docstring_singles_class.py"))]
|
#[test_case(Path::new("docstring_singles_class.py"))]
|
||||||
#[test_case(Path::new("docstring_singles_function.py"))]
|
#[test_case(Path::new("docstring_singles_function.py"))]
|
||||||
fn single_docstring(path: &Path) -> Result<()> {
|
fn require_docstring_singles(path: &Path) -> Result<()> {
|
||||||
let snapshot = format!("single_docstring_{}", path.to_string_lossy());
|
let snapshot = format!("require_docstring_singles_over_{}", path.to_string_lossy());
|
||||||
let diagnostics = test_path(
|
let diagnostics = test_path(
|
||||||
Path::new("./resources/test/fixtures/flake8_quotes")
|
Path::new("./resources/test/fixtures/flake8_quotes")
|
||||||
.join(path)
|
.join(path)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue