예제 #1
0
 def test_it_retrieves_other_reporters_by_fully_qualified_name(self):
     arguments = cli.parse_args(
         ["--reporter", "virtue.tests.test_cli.TestParser.reporter", "abc"],
     )
     self.assertEqual(arguments["reporter"], self.reporter)
예제 #2
0
 def test_it_parses_out_tests(self):
     arguments = cli.parse_args(["foo", "bar", "baz"])
     self.assertEqual(arguments["tests"], ["foo", "bar", "baz"])
예제 #3
0
 def test_it_retrieves_built_in_reporters_by_name(self):
     arguments = cli.parse_args(["--reporter", "tree", "foo"])
     self.assertIsInstance(arguments["reporter"], TreeReporter)