From d74594b84881e9100331e12cad6a1e3685936177 Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Tue, 4 Oct 2022 10:48:18 +0200
Subject: [PATCH] adapt test as there is by default an in-memory storage

---
 autocomplete_multi_models/tests/test_business_process.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/autocomplete_multi_models/tests/test_business_process.py b/autocomplete_multi_models/tests/test_business_process.py
index c3ed391..1518a47 100644
--- a/autocomplete_multi_models/tests/test_business_process.py
+++ b/autocomplete_multi_models/tests/test_business_process.py
@@ -133,11 +133,11 @@ class NeedRebuildDefaultBehaviorTestCase(test_helpers.ChangeAutoCompleteSettings
     def test_it(self):
         self.assertTrue(business_process.get_setting_from_storage(utils.REBUILD_NEEDED, True))
         business_process.set_setting_in_storage(utils.REBUILD_NEEDED, False)
-        self.assertTrue(business_process.get_setting_from_storage(utils.REBUILD_NEEDED, True))
+        self.assertFalse(business_process.get_setting_from_storage(utils.REBUILD_NEEDED, None))
         business_process.set_setting_in_storage(utils.REBUILD_NEEDED, True)
-        self.assertTrue(business_process.get_setting_from_storage(utils.REBUILD_NEEDED, True))
+        self.assertTrue(business_process.get_setting_from_storage(utils.REBUILD_NEEDED, None))
         management.call_command('makeautocompleteindex')
-        self.assertTrue(business_process.get_setting_from_storage(utils.REBUILD_NEEDED, True))
+        self.assertFalse(business_process.get_setting_from_storage(utils.REBUILD_NEEDED, None))
         self.assertEqual(models.IndexedWord.objects.count(), 0)
 
 
-- 
GitLab