mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Runs pyupgrade to Python 3.8+ and adds a hook for it
This commit is contained in:
@@ -36,13 +36,13 @@ class _TestMatchingBase(TestCase):
|
||||
doc = Document(content=string)
|
||||
self.assertTrue(
|
||||
matching.matches(instance, doc),
|
||||
'"%s" should match "%s" but it does not' % (match_text, string),
|
||||
f'"{match_text}" should match "{string}" but it does not',
|
||||
)
|
||||
for string in no_match:
|
||||
doc = Document(content=string)
|
||||
self.assertFalse(
|
||||
matching.matches(instance, doc),
|
||||
'"%s" should not match "%s" but it does' % (match_text, string),
|
||||
f'"{match_text}" should not match "{string}" but it does',
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user