diff --git a/autocomplete_multi_models/tests/test_business_process.py b/autocomplete_multi_models/tests/test_business_process.py index c3ed3911736f0b1952eeafa6ed3c8c84e2b40c6c..1518a47f7f3d60886bf4551a7c7ddd75b47ab03e 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)