mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-10-04 01:52:42 -05: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:
@@ -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")
|
||||
|
Reference in New Issue
Block a user