mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-18 22:08:14 +00:00
Get or create because of tets ordering I guess?
This commit is contained in:
1 parent
c6f83cc1a0
commit
09e37111a9
1 file changed
+5
-4
@@ -1412,9 +1412,10 @@ class TestCryptExportImport(
|
||||
THEN:
|
||||
- The import succeeds and the float value is preserved
|
||||
"""
|
||||
config = ApplicationConfiguration.objects.first()
|
||||
config.rotate_pages_threshold = 12.5
|
||||
config.save()
|
||||
ApplicationConfiguration.objects.update_or_create(
|
||||
pk=1,
|
||||
defaults={"rotate_pages_threshold": 12.5},
|
||||
)
|
||||
|
||||
call_command(
|
||||
"document_exporter",
|
||||
@@ -1437,7 +1438,7 @@ class TestCryptExportImport(
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
ApplicationConfiguration.objects.first().rotate_pages_threshold,
|
||||
ApplicationConfiguration.objects.get().rotate_pages_threshold,
|
||||
12.5,
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user