Skip to content

Commit

Permalink
Fix tests after reverting 33f54dc
Browse files Browse the repository at this point in the history
  • Loading branch information
kblomqvist committed Jan 31, 2021
1 parent d3c87e3 commit 6ded1b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def test_broken_extensions_name_error(tmpdir):


def test_render_template_from_stdin_to_stdout():
cmd = r'echo {{ foo }} | yasha --foo=bar -'
cmd = r'echo -n {{ foo }} | yasha --foo=bar -'
out = check_output(cmd, shell=True)
assert out == b'bar'

Expand All @@ -379,7 +379,7 @@ def test_json_template(tmpdir):

def test_mode_is_none():
"""gh-42, and gh-44"""
cmd = r'echo {{ foo }} | yasha -'
cmd = r'echo -n {{ foo }} | yasha -'
out = check_output(cmd, shell=True)
assert out == b''

Expand All @@ -395,7 +395,7 @@ def test_mode_is_pedantic():

def test_mode_is_debug():
"""gh-44"""
cmd = r'echo {{ foo }} | yasha --mode=debug -'
cmd = r'echo -n {{ foo }} | yasha --mode=debug -'
out = check_output(cmd, shell=True)
assert out == b'{{ foo }}'

Expand Down

0 comments on commit 6ded1b8

Please sign in to comment.