Skip to content

Commit

Permalink
test_state: import json_dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf committed Oct 1, 2023
1 parent d797b6d commit 96f7aa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
StateUpdate,
)
from reflex.utils import prerequisites
from reflex.utils.format import json_dumps
from reflex.vars import BaseVar, ComputedVar

from .states import GenState
Expand Down Expand Up @@ -2105,7 +2106,7 @@ class MutableContainsBase(State):

dict_val = MutableContainsBase().dict()
assert isinstance(dict_val["items"][0], dict)
val = format.json_dumps(dict_val)
val = json_dumps(dict_val)
assert val == '{"is_hydrated": false, "items": [{"tags": ["123", "456"]}]}'


Expand Down

0 comments on commit 96f7aa1

Please sign in to comment.