We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e77041d commit c0a51b1Copy full SHA for c0a51b1
backend/custom_admin/tests/test_templatetags.py
@@ -9,4 +9,8 @@ def test_empty_string_if_none():
9
10
11
def test_to_json_for_prop():
12
+ assert to_json_for_prop([1, 2, 3]) == "[1, 2, 3]"
13
+ assert to_json_for_prop(None) == "null"
14
+ assert to_json_for_prop(123) == "123"
15
+ assert to_json_for_prop("abc") == "\\u0022abc\\u0022"
16
assert to_json_for_prop({"a": 123}) == "{\\u0022a\\u0022: 123}"
0 commit comments