
* 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
10 lines
285 B
Python
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"}
|