def test_lenient(self): options, sources = parse_args(['foo.pyx', '--lenient']) self.assertEqual(sources, ['foo.pyx']) self.assertEqual(Options.error_on_unknown_names, False) self.assertEqual(Options.error_on_uninitialized, False) self.check_default_global_options( ['error_on_unknown_names', 'error_on_uninitialized'])
def test_build_set_for_inplace(self): options, args = parse_args(['foo.pyx', '-i']) self.assertEqual(options.build, True)
def test_no_docstrings(self): options, sources = parse_args(['foo.pyx', '--no-docstrings']) self.assertEqual(sources, ['foo.pyx']) self.assertEqual(Options.docstrings, False) self.check_default_global_options(['docstrings'])
def test_annotate_fullc(self): options, sources = parse_args(['foo.pyx', '--annotate-fullc']) self.assertEqual(sources, ['foo.pyx']) self.assertEqual(Options.annotate, 'fullc') self.check_default_global_options(['annotate'])
def test_build_set_for_inplace(self): options, args = parse_args(['foo.pyx', '-i']) self.assertEqual(options.build, True) self.check_default_global_options()