Skip to content

Commit f846e8e

Browse files
committed
Fix StartDirectoryTest
It never checked if the start directory was properly set on the right window. Now it does.
1 parent e19147e commit f846e8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tmuxp/testsuite/workspacebuilder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ def test_start_directory(self):
416416
builder.build(session=self.session)
417417

418418
assert(self.session == builder.session)
419-
for path in ['/usr/bin', '/dev/', '/usr/', os.getcwd()]:
420-
for window in self.session.windows:
421-
for p in window.panes:
422-
self.assertTrue(p.get('pane_start_path', path))
419+
dirs = ['/usr/bin', '/dev', '/usr', os.getcwd()]
420+
for path, window in zip(dirs, self.session.windows):
421+
for p in window.panes:
422+
self.assertEqual(p.get('pane_start_path'), path)
423423

424424

425425
class PaneOrderingTest(TmuxTestCase):

0 commit comments

Comments
 (0)