def test_main_yaml_ipy(self): """Test log setting""" sys.stdin = StringIO("quit\n") main(["--ipyfake", "I", "tests/test.yaml"])
def test_main_input_arg(self): """Test log setting""" main(["--input", "tests/test.yaml", "I"])
def test_main_yaml(self): """Test log setting""" with captured_output(BrokenPipeOutput) as (out, err): main(["-"])
def test_main_yaml(self): """Test log setting""" main(["I", "tests/test.yaml"])
def test_main_json_raw(self): """Test log setting""" main(["--raw", "--yaml", "I", "tests/test.json"])
def test_main_json_list(self): """Test log setting""" main(["--list", "--yaml", "I", "tests/test.json"])
def test_main_help(self): """Test log setting""" with self.assertRaises(SystemExit): main(["--help"])
def test_main_jsonl3(self): """Test log setting""" main(["-k", "sep=;", "--list", "I", "tests/test.jsonl"])
def test_main_jsonl(self): """Test log setting""" main(["--indent=-1", "I", "tests/test.json"])
def test_main_text(self): """Test log setting""" main(["--indent=-1", "I", "tests/test.txt"])
def test_main_yaml_input(self): """Test log setting""" main(["--yamli", "I", "tests/test.yaml"])