reflex/tests/test_init.py
Thomas Brandého bf0ebb8d09
Lendemor/improve coverage (#2988)
* add more tests

* add tests to raise coverage

* more tests, bump coverage to 73

* fix up icon_button test

* fix darglint for app.py

* fix utcnow usage warning

* set threshold to 72

* fix timestamp

* fix unit tests for linux-redis

* removed commented code and put a TODO
2024-04-04 14:31:43 +02:00

10 lines
285 B
Python

from reflex import _reverse_mapping # type: ignore
def test__reverse_mapping():
assert _reverse_mapping({"a": ["b"], "c": ["d"]}) == {"b": "a", "d": "c"}
def test__reverse_mapping_duplicate():
assert _reverse_mapping({"a": ["b", "c"], "d": ["b"]}) == {"b": "a", "c": "a"}