MCPcopy
hub / github.com/reflex-dev/reflex / test_class_vars

Function test_class_vars

tests/units/test_state.py:381–404  ·  view source on GitHub ↗

Test that the class vars are set correctly. Args: test_state: A state.

(test_state)

Source from the content-addressed store, hash-verified

379
380
381def test_class_vars(test_state):
382 """Test that the class vars are set correctly.
383
384 Args:
385 test_state: A state.
386 """
387 cls = type(test_state)
388 assert cls.vars.keys() == {
389 "router",
390 "num1",
391 "num2",
392 "key",
393 "map_key",
394 "array",
395 "mapping",
396 "obj",
397 "complex",
398 "sum",
399 "upper",
400 "fig",
401 "dt",
402 "asynctest",
403 "mixin",
404 }
405
406
407def test_event_handlers(test_state):

Callers

nothing calls this directly

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected