Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
awdeorio committed Nov 3, 2023
1 parent 5481aa4 commit 18c0517
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_simple(tmpdir):
"""Run a simple MapReduce job and verify the output."""
with tmpdir.as_cwd():
madoop.mapreduce(
input_dir=TESTDATA_DIR/"word_count/input",
input_path=TESTDATA_DIR/"word_count/input",
output_dir="output",
map_exe=TESTDATA_DIR/"word_count/map.py",
reduce_exe=TESTDATA_DIR/"word_count/reduce.py",
Expand All @@ -24,7 +24,7 @@ def test_bash_executable(tmpdir):
"""Run a MapReduce job written in Bash."""
with tmpdir.as_cwd():
madoop.mapreduce(
input_dir=TESTDATA_DIR/"word_count/input",
input_path=TESTDATA_DIR/"word_count/input",
output_dir="output",
map_exe=TESTDATA_DIR/"word_count/map.sh",
reduce_exe=TESTDATA_DIR/"word_count/reduce.sh",
Expand All @@ -39,7 +39,7 @@ def test_bad_map_exe(tmpdir):
"""Map exe returns non-zero should produce an error message."""
with tmpdir.as_cwd(), pytest.raises(madoop.MadoopError):
madoop.mapreduce(
input_dir=TESTDATA_DIR/"word_count/input",
input_path=TESTDATA_DIR/"word_count/input",
output_dir="output",
map_exe=TESTDATA_DIR/"word_count/map_invalid.py",
reduce_exe=TESTDATA_DIR/"word_count/reduce.py",
Expand All @@ -50,7 +50,7 @@ def test_missing_shebang(tmpdir):
"""Reduce exe with a bad shebag should produce an error message."""
with tmpdir.as_cwd(), pytest.raises(madoop.MadoopError):
madoop.mapreduce(
input_dir=TESTDATA_DIR/"word_count/input",
input_path=TESTDATA_DIR/"word_count/input",
output_dir="output",
map_exe=TESTDATA_DIR/"word_count/map.py",
reduce_exe=TESTDATA_DIR/"word_count/reduce_invalid.py",
Expand All @@ -61,7 +61,7 @@ def test_empty_inputs(tmpdir):
"""Empty input files should not raise an error."""
with tmpdir.as_cwd():
madoop.mapreduce(
input_dir=TESTDATA_DIR/"word_count/input_empty",
input_path=TESTDATA_DIR/"word_count/input_empty",
output_dir="output",
map_exe=TESTDATA_DIR/"word_count/map.py",
reduce_exe=TESTDATA_DIR/"word_count/reduce.py",
Expand Down

0 comments on commit 18c0517

Please sign in to comment.