Skip to content

Commit

Permalink
zauberzeug#287 better var name
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Feb 2, 2023
1 parent 13f13c3 commit 0d7854f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_binding_to_input(screen: Screen):
class Model:
text = 'one'
data = Model()
input = ui.input().bind_value(data, 'text')
element = ui.input().bind_value(data, 'text')

screen.open('/')
screen.should_contain('one')
Expand All @@ -77,9 +77,9 @@ class Model:
assert data.text == 'two'
data.text = 'three'
screen.should_contain('three')
input.set_value('four')
element.set_value('four')
screen.should_contain('four')
assert data.text == 'four'
input.value = 'five'
element.value = 'five'
screen.should_contain('five')
assert data.text == 'five'

0 comments on commit 0d7854f

Please sign in to comment.