We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b21043 commit 63c68e7Copy full SHA for 63c68e7
tests/main_tests/test_main.py
@@ -318,6 +318,26 @@ def test_parse_args(self):
318
main()
319
self.assertTrue((self.output_path.parent / "main.json").exists())
320
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
+
341
def tearDown(self):
342
if self.output_path.parent.exists():
343
shutil.rmtree(self.output_path.parent)
0 commit comments