Skip to content

Commit 21ecc1e

Browse files
catrolltony
andauthored
Update tests/test_cli.py
Co-authored-by: Tony Narlock <tony@git-pull.com>
1 parent 16b3fcb commit 21ecc1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,9 @@ def test_shell_plus(
734734
)
735735
def test_convert(cli_args, tmpdir, monkeypatch):
736736
# create dummy tmuxp yaml so we don't get yelled at
737-
filename = '.tmuxp.yaml' if cli_args[1] == '.' else cli_args[1]
737+
filename = cli_args[1]
738+
if filename == '.':
739+
filename = '.tmuxp.yaml'
738740
file_ext = filename.rsplit('.', 1)[-1]
739741
assert file_ext in ['yaml', 'yml'], file_ext
740742
tmpdir.join(filename).write('\nsession_name: hello\n')

0 commit comments

Comments
 (0)