Beispiel #1
0
 def test_process_args_expected_keywords(self, args):
     res = process_args(args)
     expected_keys = [
         "input_file",
         "output_file",
         "input_file_format",
         "output_file_format",
         "complement",
         "gaps",
         "mode",
         "use_log",
     ]
     assert sorted(res.keys()) == sorted(expected_keys)
Beispiel #2
0
 def test_process_args_default_use_logs(self, args):
     args.log = None
     res = process_args(args)
     assert res["use_log"] is False
Beispiel #3
0
 def test_process_args_default_output_file(self, args):
     args.output = None
     res = process_args(args)
     assert res["output_file"] == f"{args.input}.clipkit"
Beispiel #4
0
 def test_process_args_default_gaps(self, args):
     res = process_args(args)
     assert res["gaps"] == 0.9
Beispiel #5
0
 def test_process_args_default_complementary(self, args):
     args.complementary = None
     res = process_args(args)
     assert res["complement"] is False
Beispiel #6
0
 def test_process_args_default_mode(self, args):
     res = process_args(args)
     assert res["mode"] == TrimmingMode.gappy
Beispiel #7
0
 def test_process_args_in_equals_out(self, args):
     args.output = args.input
     with pytest.raises(SystemExit):
         process_args(args)
Beispiel #8
0
 def test_process_args_input_file_dne(self, args):
     args.input = "some/file/that/doesnt/exist"
     with pytest.raises(SystemExit):
         process_args(args)