Skip to content

Commit d577c2e

Browse files
committed
Create testcase for dots in session names
See also: #132, #122
1 parent 914816a commit d577c2e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# regression for https://github.com/tony/tmuxp/issues/132
2+
session_name: dot.session-name
3+
windows:
4+
- layout: main-vertical
5+
panes:
6+
- shell_command:
7+
- echo 'hi'

tests/test_cli.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,17 @@ def test_load_workspace(server, monkeypatch):
269269
assert session.name == 'sampleconfig'
270270

271271

272+
def test_regression_00132_session_name_with_dots(tmpdir, server, session):
273+
server.new_session('any session')
274+
yaml_config = curjoin("workspacebuilder/regression_00132_dots.yaml")
275+
cli_args = [yaml_config]
276+
inputs = ['\n']
277+
runner = CliRunner()
278+
result = runner.invoke(
279+
cli.command_load, cli_args, input=''.join(inputs))
280+
assert 'already running' not in result.output
281+
282+
272283
@pytest.mark.parametrize("cli_args", [
273284
(['load', '.']),
274285
(['load', '.tmuxp.yaml']),

0 commit comments

Comments
 (0)