Esempio n. 1
0
 def test_parse_args_extras2(self):
     args = parse_args(argv=["f1", "f2", "-E", "docs", "-E", "lint"])
     assert args.filenames == ["f1", "f2"]
     assert args.requirements == "requirements.txt"
     assert args.verbose == 0
     assert args.dev is False
     assert args.extras == ["docs", "lint"]
Esempio n. 2
0
 def test_parse_args_vvv(self):
     args = parse_args(argv=["f1", "f2", "-vvv"])
     assert args.filenames == ["f1", "f2"]
     assert args.requirements == "requirements.txt"
     assert args.verbose == 3
     assert args.dev is False
     assert args.extras == []
Esempio n. 3
0
 def test_parse_args_dev(self):
     args = parse_args(argv=["f1", "f2", "-D"])
     assert args.filenames == ["f1", "f2"]
     assert args.requirements == "requirements.txt"
     assert args.verbose == 0
     assert args.dev is True
     assert args.extras == []
Esempio n. 4
0
 def test_parse_args_requirements(self):
     args = parse_args(argv=["f1", "f2", "--requirements", "r.txt"])
     assert args.filenames == ["f1", "f2"]
     assert args.requirements == "r.txt"
     assert args.verbose == 0
     assert args.dev is False
     assert args.extras == []