From 8412263001f8a367bf32d5f16fc844e63f0927b8 Mon Sep 17 00:00:00 2001 From: Jonas Vacek Date: Mon, 6 Oct 2025 21:21:33 +0200 Subject: [PATCH] Fix code in test --- .../resources/test/fixtures/flake8_django/DJ015.py | 2 +- ...r__rules__flake8_django__tests__DJ015_DJ015.py.snap | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/ruff_linter/resources/test/fixtures/flake8_django/DJ015.py b/crates/ruff_linter/resources/test/fixtures/flake8_django/DJ015.py index c169fff641..dd6c98fb05 100644 --- a/crates/ruff_linter/resources/test/fixtures/flake8_django/DJ015.py +++ b/crates/ruff_linter/resources/test/fixtures/flake8_django/DJ015.py @@ -50,5 +50,5 @@ urlpatterns_quotes = [ # Error - leading trail slash and argument should stay in message urlpatterns_params_bad = [ path("/bad//", views.bad_view), # DJ015 - path("/", views.bad_view), # DJ014 + path("/", views.bad_view), # DJ015 ] diff --git a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ015_DJ015.py.snap b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ015_DJ015.py.snap index 9da395bbf7..da9ec8f894 100644 --- a/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ015_DJ015.py.snap +++ b/crates/ruff_linter/src/rules/flake8_django/snapshots/ruff_linter__rules__flake8_django__tests__DJ015_DJ015.py.snap @@ -225,7 +225,7 @@ DJ015 [*] URL route `/bad//` has an unnecessary leading slash 51 | urlpatterns_params_bad = [ 52 | path("/bad//", views.bad_view), # DJ015 | ^^^^^^^^^^^^^^^^^^^ -53 | path("/", views.bad_view), # DJ014 +53 | path("/", views.bad_view), # DJ015 54 | ] | help: Remove leading slash @@ -234,7 +234,7 @@ help: Remove leading slash 51 | urlpatterns_params_bad = [ - path("/bad//", views.bad_view), # DJ015 52 + path("bad//", views.bad_view), # DJ015 -53 | path("/", views.bad_view), # DJ014 +53 | path("/", views.bad_view), # DJ015 54 | ] DJ015 [*] URL route `/` has an unnecessary leading slash @@ -242,7 +242,7 @@ DJ015 [*] URL route `/` has an unnecessary leading slash | 51 | urlpatterns_params_bad = [ 52 | path("/bad//", views.bad_view), # DJ015 -53 | path("/", views.bad_view), # DJ014 +53 | path("/", views.bad_view), # DJ015 | ^^^^^^^^^^^^^^ 54 | ] | @@ -250,6 +250,6 @@ help: Remove leading slash 50 | # Error - leading trail slash and argument should stay in message 51 | urlpatterns_params_bad = [ 52 | path("/bad//", views.bad_view), # DJ015 - - path("/", views.bad_view), # DJ014 -53 + path("", views.bad_view), # DJ014 + - path("/", views.bad_view), # DJ015 +53 + path("", views.bad_view), # DJ015 54 | ]