Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/n/i/ninja-ide-HEAD/ninja_tests/tools/completion/test_analyzer.py   ninja-ide(Download)
    def test_imports(self):
        module = self.analyzer.analyze(SOURCE_ANALYZER_NATIVE)
 
        type1 = model._TypeData(None, 'sys', 'import sys', None)
        type2 = model._TypeData(None, 'os', 'import os', None)
        type3 = model._TypeData(None, 'sys.exit', 'import sys.exit', None)
        self.assertEqual(func_args, args_names)
        #For: var
        type_var = model._TypeData(0, model.late_resolution, None, None)
        func_arg_obj = func.args['var']
        type_arg_func = func_arg_obj.data[0]
        self.assertFalse(type_arg_func.is_native)
        #For: inte
        type_var = model._TypeData(0, model.late_resolution, None, None)
        func_arg_obj = func.args['inte']
        type_arg_func = func_arg_obj.data[0]

src/n/i/ninja-ide-HEAD/ninja_tests/tools/completion/test_code_completion_late_resolution.py   ninja-ide(Download)
    def test_var_attribute_assign(self):
        module = self.analyzer.analyze(SOURCE_LATE_RESOLUTION)
 
        type1 = model._TypeData(None, 'os', 'import os', None)
        type2 = model.Assign('p')