Skip to content

Commit

Permalink
add test for LayoutUpdate util methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Sep 15, 2020
1 parent 7a16bc6 commit 40f7005
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_core/test_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@
import pytest

import idom
from idom.core.layout import LayoutUpdate

from tests.general_utils import assert_same_items, HookCatcher


def test_layout_update_create_from_apply_to():
update = LayoutUpdate.create_from({"a": 1, "b": [1]}, {"a": 2, "b": [1, 2]})
assert update.apply_to({"a": 1, "b": [1]}) == {"a": 2, "b": [1, 2]}


def test_layout_repr():
@idom.element
def MyElement():
Expand Down

0 comments on commit 40f7005

Please sign in to comment.