From 09e37111a91b767389229f4c92369e6d24a6e27f Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Sun, 18 Oct 2026 14:41:05 -0700 Subject: [PATCH] Get or create because of tets ordering I guess? --- src/documents/tests/test_management_exporter.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/documents/tests/test_management_exporter.py b/src/documents/tests/test_management_exporter.py index 41110091b..b4cee95da 100644 --- a/src/documents/tests/test_management_exporter.py +++ b/src/documents/tests/test_management_exporter.py @@ -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, )