Skip to content

Commit

Permalink
#26 update paths and directories in workspacebuilder tests to work wi…
Browse files Browse the repository at this point in the history
…th osx.
  • Loading branch information
tony committed Dec 3, 2013
1 parent f2af226 commit bd1bec4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tmuxp/testsuite/test_workspacebuilder.py
Expand Up @@ -42,7 +42,7 @@ class TwoPaneTest(TmuxTestCase):
window_name: editor
- panes:
- shell_command:
- tail -F /var/log/syslog
- tail | echo 'hi'
window_name: logging
- window_name: test
panes:
Expand Down Expand Up @@ -123,7 +123,7 @@ class FocusAndPaneIndexTest(TmuxTestCase):
- shell_command:
- cd ~
- shell_command:
- cd /var
- cd /usr
focus: true
- shell_command:
- cd ~
Expand Down Expand Up @@ -176,7 +176,7 @@ def test_split_windows(self):

self.assertNotEqual(w.get('window_name'), 'man')

pane_path = '/var'
pane_path = '/usr'
for i in range(60):
p = w.attached_pane()
p.server._update_panes()
Expand Down Expand Up @@ -334,10 +334,10 @@ def test_blank_pane_count(self):
class StartDirectoryTest(TmuxTestCase):
yaml_config = """
session_name: sampleconfig
start_directory: '/var'
start_directory: '/usr'
windows:
- window_name: supposed to be /var/log
start_directory: '/var/log'
- window_name: supposed to be /usr/bin
start_directory: '/usr/bin'
layout: main-horizontal
options:
main-pane-height: 50
Expand Down Expand Up @@ -388,7 +388,7 @@ def test_start_directory(self):
builder.build(session=self.session)

assert(self.session == builder.session)
for path in ['/var/log', '/dev/', '/var/', os.getcwd()]:
for path in ['/usr/bin', '/dev/', '/usr/', os.getcwd()]:
for window in self.session.windows:
for p in window.panes:
self.assertTrue(p.get('pane_start_path', path))
Expand All @@ -410,8 +410,8 @@ class PaneOrderingTest(TmuxTestCase):
- automatic_rename: on
layout: tiled
panes:
- cd /var/log
- cd /sys
- cd /usr/bin
- cd /usr
- cd /sbin
- cd /tmp
"""
Expand All @@ -420,8 +420,8 @@ def test_pane_order(self):

# test order of `panes` (and pane_index) above aganist pane_dirs
pane_paths = [
'/var/log',
'/sys',
'/usr/bin',
'/usr',
'/sbin',
'/tmp'
]
Expand Down

0 comments on commit bd1bec4

Please sign in to comment.