Skip to content
Snippets Groups Projects
Commit d74594b8 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

adapt test as there is by default an in-memory storage

parent 91092be4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment