Skip to content

Commit 41e67ec

Browse files
committed
Update window tests to use .index
1 parent 6356179 commit 41e67ec

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/test_window.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,19 @@ def test_select_window(session):
1919
# for now hoever, let's get the index from the first window.
2020
assert window_count == 1
2121

22-
window_base_index = int(
23-
session.attached_window.get('window_index'))
22+
window_base_index = int(session.attached_window.index)
2423

2524
window = session.new_window(window_name='testing 3')
2625

2726
# self.assertEqual(2,
28-
# int(session.attached_window.get('window_index')))
29-
assert int(window_base_index) + 1 == int(window.get('window_index'))
27+
# int(session.attached_window.index))
28+
assert int(window_base_index) + 1 == int(window.index)
3029

3130
session.select_window(window_base_index)
32-
assert window_base_index == \
33-
int(session.attached_window.get('window_index'))
31+
assert window_base_index == int(session.attached_window.index)
3432

3533
session.select_window('testing 3')
36-
assert int(window_base_index) + 1 == \
37-
int(session.attached_window.get('window_index'))
34+
assert int(window_base_index) + 1 == int(session.attached_window.index)
3835

3936
assert len(session._windows) == 2
4037

0 commit comments

Comments
 (0)