Loading tests/test_main.py +4 −4 Original line number Diff line number Diff line Loading @@ -8,19 +8,19 @@ cases = os.path.join(test_dir, 'testcases') output = os.path.join(test_dir, 'test_output') config['output'] = output from unittest.mock import patch os.mkdir(output) a = [] import io import shutil def clear_output(): if os.path.exists(output) shutil.rmtree(output) os.mkdir(output) class TestMain(unittest.TestCase): def test_help(self): main(argv = None) # def test_help(self): # main(argv = None) def test_quick_run_cmdline(self): clear_output() Loading Loading
tests/test_main.py +4 −4 Original line number Diff line number Diff line Loading @@ -8,19 +8,19 @@ cases = os.path.join(test_dir, 'testcases') output = os.path.join(test_dir, 'test_output') config['output'] = output from unittest.mock import patch os.mkdir(output) a = [] import io import shutil def clear_output(): if os.path.exists(output) shutil.rmtree(output) os.mkdir(output) class TestMain(unittest.TestCase): def test_help(self): main(argv = None) # def test_help(self): # main(argv = None) def test_quick_run_cmdline(self): clear_output() Loading