Skip to content

Commit

Permalink
test(builder): Remove unused loop variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Apr 27, 2024
1 parent 38cf396 commit f394055
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/workspace/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ def test_split_windows(session: Session) -> None:
window_count = len(session.windows) # current window count
assert len(session.windows) == window_count
for w, wconf in builder.iter_create_windows(session):
for p in builder.iter_create_panes(w, wconf):
for _ in builder.iter_create_panes(w, wconf):
w.select_layout("tiled") # fix glitch with pane size
p = p
assert len(session.windows) == window_count
assert isinstance(w, Window)

Expand All @@ -68,9 +67,8 @@ def test_split_windows_three_pane(session: Session) -> None:
window_count = len(session.windows) # current window count
assert len(session.windows) == window_count
for w, wconf in builder.iter_create_windows(session):
for p in builder.iter_create_panes(w, wconf):
for _ in builder.iter_create_panes(w, wconf):
w.select_layout("tiled") # fix glitch with pane size
p = p
assert len(session.windows) == window_count
assert isinstance(w, Window)

Expand Down Expand Up @@ -301,9 +299,8 @@ def test_window_options(
window_count = len(session.windows) # current window count
assert len(session.windows) == window_count
for w, wconf in builder.iter_create_windows(session):
for p in builder.iter_create_panes(w, wconf):
for _ in builder.iter_create_panes(w, wconf):
w.select_layout("tiled") # fix glitch with pane size
p = p
assert len(session.windows) == window_count
assert isinstance(w, Window)
assert w._show_option("main-pane-height") == 5
Expand Down

0 comments on commit f394055

Please sign in to comment.