From 18c0517e5552c16fb151d3a4b0e9db2ae4e85e4c Mon Sep 17 00:00:00 2001 From: Andrew DeOrio Date: Fri, 3 Nov 2023 13:51:19 -0400 Subject: [PATCH] fix tests --- tests/test_api.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_api.py b/tests/test_api.py index d222a62..8a955e1 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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", @@ -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", @@ -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", @@ -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", @@ -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",