mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 02:27:06 +01:00
Reduces number of warnings from testing from 165 to 128. In doing so, fixes a few minor things in the decrypt and export commands
This commit is contained in:
parent
96a84d16a6
commit
85b210ebf6
6 changed files with 24 additions and 14 deletions
|
|
@ -61,6 +61,6 @@ class TestDocumentAdmin(DirectoriesMixin, TestCase):
|
|||
|
||||
def test_created(self):
|
||||
doc = Document.objects.create(
|
||||
title="test", created=timezone.datetime(2020, 4, 12)
|
||||
title="test", created=timezone.make_aware(timezone.datetime(2020, 4, 12))
|
||||
)
|
||||
self.assertEqual(self.doc_admin.created_(doc), "2020-04-12")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue