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