mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
Configures ruff as the one stop linter and resolves warnings it raised
This commit is contained in:
parent
5869467db3
commit
ce41ac9158
110 changed files with 507 additions and 491 deletions
|
|
@ -1,14 +1,14 @@
|
|||
from django.test import TestCase
|
||||
|
||||
from ..models import Correspondent
|
||||
from ..models import Document
|
||||
from documents.models import Correspondent
|
||||
from documents.models import Document
|
||||
from .factories import CorrespondentFactory
|
||||
from .factories import DocumentFactory
|
||||
|
||||
|
||||
class CorrespondentTestCase(TestCase):
|
||||
def test___str__(self):
|
||||
for s in ("test", "οχι", "test with fun_charÅc'\"terß"):
|
||||
for s in ("test", "oχi", "test with fun_charÅc'\"terß"):
|
||||
correspondent = CorrespondentFactory.create(name=s)
|
||||
self.assertEqual(str(correspondent), s)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue