mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-16 01:31:09 -06:00
Upgrades black to v23, upgrades ruff
This commit is contained in:
@@ -48,7 +48,6 @@ class _TestMatchingBase(TestCase):
|
||||
|
||||
class TestMatching(_TestMatchingBase):
|
||||
def test_match_none(self):
|
||||
|
||||
self._test_matching(
|
||||
"",
|
||||
"MATCH_NONE",
|
||||
@@ -60,7 +59,6 @@ class TestMatching(_TestMatchingBase):
|
||||
)
|
||||
|
||||
def test_match_all(self):
|
||||
|
||||
self._test_matching(
|
||||
"alpha charlie gamma",
|
||||
"MATCH_ALL",
|
||||
@@ -107,7 +105,6 @@ class TestMatching(_TestMatchingBase):
|
||||
)
|
||||
|
||||
def test_match_any(self):
|
||||
|
||||
self._test_matching(
|
||||
"alpha charlie gamma",
|
||||
"MATCH_ANY",
|
||||
@@ -152,7 +149,6 @@ class TestMatching(_TestMatchingBase):
|
||||
)
|
||||
|
||||
def test_match_literal(self):
|
||||
|
||||
self._test_matching(
|
||||
"alpha charlie gamma",
|
||||
"MATCH_LITERAL",
|
||||
@@ -187,7 +183,6 @@ class TestMatching(_TestMatchingBase):
|
||||
)
|
||||
|
||||
def test_match_regex(self):
|
||||
|
||||
self._test_matching(
|
||||
r"alpha\w+gamma",
|
||||
"MATCH_REGEX",
|
||||
@@ -211,7 +206,6 @@ class TestMatching(_TestMatchingBase):
|
||||
self._test_matching("[", "MATCH_REGEX", [], ["Don't match this"])
|
||||
|
||||
def test_match_fuzzy(self):
|
||||
|
||||
self._test_matching(
|
||||
"Springfield, Miss.",
|
||||
"MATCH_FUZZY",
|
||||
@@ -331,7 +325,6 @@ class TestCaseSensitiveMatching(_TestMatchingBase):
|
||||
)
|
||||
|
||||
def test_match_literal(self):
|
||||
|
||||
self._test_matching(
|
||||
"alpha charlie gamma",
|
||||
"MATCH_LITERAL",
|
||||
|
||||
Reference in New Issue
Block a user