Exemple #1
0
 def test_resources(self):
     parser = parse_args(['projectnametest', '-r'])
     assert parser[
         'resources'] == True, "Resources argument abbreviation in parser failed."
     parser = parse_args(['projectnametest', '--resources'])
     assert parser[
         'resources'] == True, "resources argument in parser failed."
Exemple #2
0
 def test_doc(self):
     parser = parse_args(['projectnametest', '-d'])
     assert parser[
         'docs'] == False, "Documentation argument abbreviation in parser failed."
     parser = parse_args(['projectnametest', '--docs'])
     assert parser['docs'] == False, "Documentation in parser failed."
Exemple #3
0
 def test_test(self):
     parser = parse_args(['projectnametest', '-t'])
     assert parser[
         'tests'] == False, "Test argument abbreviation in parser failed."
     parser = parse_args(['projectnametest', '--tests'])
     assert parser['tests'] == False, "Test argument in parser failed."
Exemple #4
0
 def test_shebang(self):
     parser = parse_args(['projectnametest', '-s'])
     assert parser[
         'shebang'] == False, "Shebang argument abbreviation in parser failed."
     parser = parse_args(['projectnametest', '--shebang'])
     assert parser['shebang'] == False, "Shebang argument in parser failed."
Exemple #5
0
 def test_pytest(self):
     parser = parse_args(['projectnametest', '-p'])
     assert parser[
         'pytest'] == True, "Pytest argument abbreviation in parser failed."
     parser = parse_args(['projectnametest', '--pytest'])
     assert parser['pytest'] == True, "Pytest argument in parser failed."
Exemple #6
0
 def test_verbose(self):
     parser = parse_args(['projectnametest', '-v'])
     assert parser[
         'verbose'] == True, "Verbose argument abbreviation in parser failed."
     parser = parse_args(['projectnametest', '--verbose'])
     assert parser['verbose'] == True, "Verbose argument in parser failed."
Exemple #7
0
 def test_gui(self):
     parser = parse_args(['projectnametest', '-g'])
     assert parser[
         'gui'] == True, "GUI argument abbreviation in parser failed."
     parser = parse_args(['projectnametest', '--gui'])
     assert parser['gui'] == True, "GUI argument in parser failed."
Exemple #8
0
 def test_cli(self):
     parser = parse_args(['projectnametest', '-c'])
     assert parser[
         'cli'] == True, "Command line argument abbreviation in parser failed."
     parser = parse_args(['projectnametest', '--cli'])
     assert parser['cli'] == True, "Command line argument in parser failed."
Exemple #9
0
 def test_project_name(self):
     parser = parse_args(['projectnametest'])
     assert parser[
         'project_name'] == 'projectnametest', "Project name argument in parser failed."