Skip to content

Commit 63c68e7

Browse files
committed
Added batch size
1 parent 8b21043 commit 63c68e7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/main_tests/test_main.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,26 @@ def test_parse_args(self):
318318
main()
319319
self.assertTrue((self.output_path.parent / "main.json").exists())
320320

321+
def test_parse_args_batches(self):
322+
with unittest.mock.patch(
323+
"sys.argv",
324+
[
325+
"causal_testing",
326+
"--dag_path",
327+
str(self.dag_path),
328+
"--data_paths",
329+
str(self.data_paths[0]),
330+
"--test_config",
331+
str(self.test_config_path),
332+
"--output",
333+
str(self.output_path.parent / "main.json"),
334+
"--batch-size",
335+
"5",
336+
],
337+
):
338+
main()
339+
self.assertTrue((self.output_path.parent / "main.json").exists())
340+
321341
def tearDown(self):
322342
if self.output_path.parent.exists():
323343
shutil.rmtree(self.output_path.parent)

0 commit comments

Comments
 (0)