Skip to content

Commit 05601ef

Browse files
committed
tabulate CLI tests: rename s/get_stdout_and_stderr/run_and_get_stdout/
1 parent ee1d64d commit 05601ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def write_sample_input(tmpfile, sep=' '):
2525
tmpfile.file.seek(0)
2626

2727

28-
def get_stdout_and_stderr(cmd):
28+
def run_and_capture_stdout(cmd):
2929
x = subprocess.Popen(cmd,
3030
stdout=subprocess.PIPE,
3131
stderr=subprocess.PIPE)
@@ -53,7 +53,7 @@ def test_script_from_file_to_stdout():
5353
with TemporaryTextFile() as tmpfile:
5454
write_sample_input(tmpfile)
5555
cmd = ["python", "tabulate.py", tmpfile.name]
56-
out = get_stdout_and_stderr(cmd)
56+
out = run_and_capture_stdout(cmd)
5757
expected = "\n".join([
5858
'----- ------ -------------',
5959
'Sun 696000 1.9891e+09',
@@ -71,7 +71,7 @@ def test_script_sep_option():
7171
with TemporaryTextFile() as tmpfile:
7272
write_sample_input(tmpfile, sep=",")
7373
cmd = ["python", "tabulate.py", "--sep", ",", tmpfile.name]
74-
out = get_stdout_and_stderr(cmd)
74+
out = run_and_capture_stdout(cmd)
7575
expected = "\n".join([
7676
'----- ------ -------------',
7777
'Sun 696000 1.9891e+09',

0 commit comments

Comments
 (0)