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

work with string, in cache to casting to str all var

parent b0672bec
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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