diff --git a/autocomplete_multi_models/utils.py b/autocomplete_multi_models/utils.py index 6aaaec94dead352cfd350650923804ba40c75121..0e826a0008a3f9d17a5a32993a7d5b2c24803563 100644 --- a/autocomplete_multi_models/utils.py +++ b/autocomplete_multi_models/utils.py @@ -51,10 +51,12 @@ def init_from_settings(): get_fcn = import_string(get_set_names[0]) set_fcn = import_string(get_set_names[1]) - set_fcn("autocomplete_multi_models_test_settings", 1) - assert get_fcn("autocomplete_multi_models_test_settings", 3) == 1 - set_fcn("autocomplete_multi_models_test_settings", 2) - assert get_fcn("autocomplete_multi_models_test_settings", 3) == 2 + set_fcn("autocomplete_multi_models_test_settings", "1") + assert get_fcn("autocomplete_multi_models_test_settings", "3") == "1" + set_fcn("autocomplete_multi_models_test_settings", "2") + assert get_fcn("autocomplete_multi_models_test_settings", "3") == "2" + + set_fcn("autocomplete_multi_models_test_settings", None) # cleanup business_process.get_setting_from_storage = get_fcn business_process.set_setting_in_storage = set_fcn