Skip to content

Commit

Permalink
workspace{builder,freeze} split fixtures, tweak flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed May 22, 2016
1 parent b9eb738 commit f877bae
Show file tree
Hide file tree
Showing 19 changed files with 313 additions and 322 deletions.
2 changes: 1 addition & 1 deletion tests/fixtures/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import config, _util # noqa
from . import _util # noqa
5 changes: 5 additions & 0 deletions tests/fixtures/workspacebuilder/config_script_completes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
session_name: sampleconfig
before_script: {script_complete}
windows:
- panes:
- pane
5 changes: 5 additions & 0 deletions tests/fixtures/workspacebuilder/config_script_fails.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
session_name: sampleconfig
before_script: {script_failed}
windows:
- panes:
- pane
5 changes: 5 additions & 0 deletions tests/fixtures/workspacebuilder/config_script_not_exists.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
session_name: sampleconfig
before_script: {script_not_exists}
windows:
- panes:
- pane
10 changes: 10 additions & 0 deletions tests/fixtures/workspacebuilder/environment_vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
session_name: test env vars
start_directory: '~'
environment:
FOO: BAR
PATH: /tmp
windows:
- layout: main-horizontal
panes:
- pane
window_name: editor
31 changes: 31 additions & 0 deletions tests/fixtures/workspacebuilder/focus_and_pane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
session_name: sampleconfig
start_directory: '~'
windows:
- window_name: focused window
layout: main-horizontal
focus: true
panes:
- shell_command:
- cd ~
- shell_command:
- cd /usr
focus: true
- shell_command:
- cd ~
- echo "moo"
- top
- window_name: window 2
panes:
- shell_command:
- top
focus: true
- shell_command:
- echo "hey"
- shell_command:
- echo "moo"
- window_name: window 3
panes:
- shell_command: cd /
focus: true
- pane
- pane
11 changes: 11 additions & 0 deletions tests/fixtures/workspacebuilder/pane_ordering.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
session_name: sampleconfig
start_directory: {HOME}
windows:
- options:
- automatic_rename: on
layout: tiled
panes:
- cd /usr/bin
- cd /usr
- cd /usr/sbin
- cd {HOME}
57 changes: 57 additions & 0 deletions tests/fixtures/workspacebuilder/start_directory.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
session_name: sampleconfig
start_directory: '/usr'
windows:
- window_name: supposed to be /usr/bin
window_index: 1
start_directory: /usr/bin
layout: main-horizontal
options:
main-pane-height: 50
panes:
- shell_command:
- echo "hey"
- shell_command:
- echo "moo"
- window_name: support to be /dev
window_index: 2
start_directory: /dev
layout: main-horizontal
panes:
- shell_command:
- pwd
- shell_command:
- echo "hey"
- shell_command:
- echo "moo"
- window_name: cwd containing a space
window_index: 3
start_directory: {TEST_DIR}
layout: main-horizontal
panes:
- shell_command:
- pwd
- shell_command:
- echo "hey"
- shell_command:
- echo "moo"
- window_name: testsa3
window_index: 4
layout: main-horizontal
panes:
- shell_command:
- pwd
- shell_command:
- echo "hey"
- shell_command:
- echo "moo3"
- window_name: cwd relative to start_directory since no rel dir entered
window_index: 5
layout: main-horizontal
start_directory: ./
panes:
- shell_command:
- pwd
- shell_command:
- echo "hey"
- shell_command:
- echo "moo3"
51 changes: 51 additions & 0 deletions tests/fixtures/workspacebuilder/start_directory_relative.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
session_name: sampleconfig
start_directory: ./
windows:
- window_name: supposed to be /usr/bin
start_directory: '/usr/bin'
options:
main-pane-height: 50
panes:
- shell_command:
- echo "hey"
- shell_command:
- echo "moo"
- window_name: support to be /dev
start_directory: '/dev'
layout: main-horizontal
panes:
- shell_command:
- pwd
- shell_command:
- echo "hey"
- shell_command:
- echo "moo"
- window_name: cwd containing a space
start_directory: {TEST_DIR}
layout: main-horizontal
panes:
- shell_command:
- pwd
- shell_command:
- echo "hey"
- shell_command:
- echo "moo"
- window_name: inherit start_directory which is rel to config file
layout: main-horizontal
panes:
- shell_command:
- pwd
- shell_command:
- echo "hey"
- shell_command:
- echo "moo3"
- window_name: cwd relative to config file
layout: main-horizontal
start_directory: ./
panes:
- shell_command:
- pwd
- shell_command:
- echo "hey"
- shell_command:
- echo "moo3"
11 changes: 11 additions & 0 deletions tests/fixtures/workspacebuilder/suppress_history.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
session_name: sampleconfig
start_directory: '~'
suppress_history: false
windows:
- window_name: inHistory
panes:
- echo inHistory
- window_name: isMissing
suppress_history: true
panes:
- echo isMissing
12 changes: 12 additions & 0 deletions tests/fixtures/workspacebuilder/three_pane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
session_name: sampleconfig
start_directory: '~'
windows:
- window_name: test
layout: main-horizontal
panes:
- shell_command:
- vim
- shell_command:
- echo "hey"
- shell_command:
- echo "moo"
18 changes: 18 additions & 0 deletions tests/fixtures/workspacebuilder/two_pane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
session_name: sampleconfig
start_directory: '~'
windows:
- layout: main-vertical
panes:
- shell_command:
- vim
- shell_command:
- echo "hey"
window_name: editor
- panes:
- shell_command:
- tail | echo 'hi'
window_name: logging
- window_name: test
panes:
- shell_command:
- htop
14 changes: 14 additions & 0 deletions tests/fixtures/workspacebuilder/window_automatic_rename.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
session_name: test window options
start_directory: '~'
windows:
- layout: main-horizontal
options:
automatic-rename: on
panes:
- shell_command:
- sh
start_directory: '~'
- shell_command:
- echo "hey"
- shell_command:
- echo "moo"
12 changes: 12 additions & 0 deletions tests/fixtures/workspacebuilder/window_index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
session_name: sampleconfig
windows:
- window_name: zero
panes:
- echo 'zero'
- window_name: five
panes:
- echo 'five'
window_index: 5
- window_name: one
panes:
- echo 'one'
11 changes: 11 additions & 0 deletions tests/fixtures/workspacebuilder/window_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
session_name: test window options
start_directory: '~'
windows:
- layout: main-horizontal
options:
main-pane-height: 5
panes:
- pane
- pane
- pane
window_name: editor
12 changes: 12 additions & 0 deletions tests/fixtures/workspacebuilder/window_shell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
session_name: test window options
start_directory: '~'
windows:
- layout: main-horizontal
options:
main-pane-height: 5
panes:
- pane
- pane
- pane
window_name: editor
window_shell: top
21 changes: 21 additions & 0 deletions tests/fixtures/workspacefreezer/sampleconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
session_name: sampleconfig
start_directory: '~'
windows:
- layout: main-vertical
panes:
- shell_command:
- vim
start_directory: '~'
- shell_command:
- echo "hey"
- cd ../
window_name: editor
- panes:
- shell_command:
- pane
start_directory: /usr/bin
window_name: logging
- window_name: test
panes:
- shell_command:
- top
Loading

0 comments on commit f877bae

Please sign in to comment.