mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-11 10:00:48 -05:00
18 lines
506 B
Python
18 lines
506 B
Python
import unittest
|
|
|
|
from django.test import TestCase
|
|
|
|
from .factories import DocumentFactory
|
|
from ..checks import changed_password_check
|
|
from ..models import Document
|
|
|
|
|
|
class ChecksTestCase(TestCase):
|
|
|
|
def test_changed_password_check_empty_db(self):
|
|
self.assertEqual(changed_password_check(None), [])
|
|
|
|
def test_changed_password_check_no_encryption(self):
|
|
DocumentFactory.create(storage_type=Document.STORAGE_TYPE_UNENCRYPTED)
|
|
self.assertEqual(changed_password_check(None), [])
|