Skip to content
This repository
Newer
Older
100644 61 lines (49 sloc) 1.675 kb
b49c3b99 »
2011-07-25 fix: builtin methods must be function object
1 from .helpers import pytest_funcarg__project, do_assist, get_source_and_pos
022561df »
2011-04-19 Lazy module loader
2
1453e493 »
2011-04-30 eval of dynamic methods
3 def test_eval_of_os_path_abspath(project):
df602780 »
2011-04-29 fix double value push into eval stack on if expression visit. It is a…
4 result = do_assist(project, '''
5 from os.path import abspath
6 abspath('').''')
7
1453e493 »
2011-04-30 eval of dynamic methods
8 assert 'lower' in result
fc0ac215 »
2011-05-11 fix assist for class objects subclassed from type
9
10 def test_assist_for_gtk_object_attributes(project):
11 result = do_assist(project, '''
12 import gtk
13 gtk.Window().''')
14
15 assert 'activate' in result
1582fb78 »
2011-05-14 support for unsafe dynamic descriptors
16
17 def test_assist_for_gtk_class_properties(project):
18 result = do_assist(project, '''
19 import gtk
20 gtk.Window.props.''')
21
38a685b5 »
2011-06-27 fix some completion issues
22 assert 'has_focus' in result
23
6e4a136b »
2011-06-27 use possible dynamic objects in static evaluation
24 def test_logging_getLogger(project):
25 result = do_assist(project, '''
26 import logging
27 logging.getLogger(__name__).|
28 ''')
38a685b5 »
2011-06-27 fix some completion issues
29
92f21a82 »
2011-06-29 handler starargs
30 assert 'exception' in result
dc8526e5 »
2011-07-21 pygtk overrides generator
31
84302cd4 »
2011-07-29 override functionality implemented as hook
32 def est_pyqt_signals(project):
33 result = do_assist(project, '''
34 from PyQt4 import QtGui
35 app = QtGui.QApplication([])
36 window = QtGui.QWidget()
37 button = QtGui.QPushButton(window)
38 button.clicked.|
39 ''')
40
41 assert result == ['connect', 'disconnect', 'emit']
42
43 def test_recursive_name_defenition(project):
1c6484c8 »
2011-07-29 fix: overriden functions return invalid scope
44 project.register_hook('supplement.hooks.override')
84302cd4 »
2011-07-29 override functionality implemented as hook
45 result = do_assist(project, '''
46 import os, re
47 def fnc(file):
48 code = open(file).read()
49 pyrex = re.search("(from)(.+)", code)
50 code = code.replace(pyrex.group(1), "b")
51 code.|
52 ''')
fac7692c »
2011-10-07 fix: dotted module names in imported objects
53
54 #def test_snaked(project):
2f56f9e5 »
2011-10-12 fix: absolute imports from project level package. Fix recursion evalu…
55 # project.set_root('/home/bobrov/work/bonent')
56 # fname = project.root + '/bparser/smscenter.py'
57 # source, pos = open(fname).read(), 524
58 # result = do_assist(project, source, fname)
fac7692c »
2011-10-07 fix: dotted module names in imported objects
59 #
60 # print result
61 # assert False
Something went wrong with that request. Please try again.