Commit Graph

10 Commits

Author SHA1 Message Date
David Halter
7e2eb587e1 is_keyword test 2013-05-18 23:56:12 +04:30
David Halter
4d0417f591 change some definition usages to goto_definitions in tests and docs 2013-05-03 21:35:01 +04:30
David Halter
7c8fee1257 removed a lot of the goto usages, used goto_assignments instead. Did the same also for a lot of definition uses 2013-05-03 21:26:29 +04:30
David Halter
efeeee9706 removed related_names occurences in favor of usages 2013-05-03 21:04:36 +04:30
Takafumi Arakaki
6a2e535bcb Add er.Generator.__getattr__ 2013-03-16 21:50:05 +01:00
Takafumi Arakaki
c25ee531a2 AttributeError: 'Generator' object has no attribute 'start_pos'
Running py.test raises this error:
```tb
test/test_api_classes.py:50: in <module>
>   @pytest.mark.parametrize('definition', make_definitions())
test/test_api_classes.py:38: in make_definitions
>       definitions += script.definition()
jedi/api_classes.py:44: in wrapper
>       result = func(*args, **kwds)
jedi/api.py:274: in definition
>                   if not isinstance(s, imports.ImportPath._GlobalNamespace)])
jedi/api_classes.py:418: in __init__
>       super(Definition, self).__init__(definition, definition.start_pos)
E       AttributeError: 'Generator' object has no attribute 'start_pos'
```
2013-03-16 21:50:05 +01:00
Takafumi Arakaki
c8c1113c55 Test generator and lambda 2013-03-15 14:26:58 +01:00
Takafumi Arakaki
a0c796087a Generate "param" definition in make_definitions 2013-03-15 14:24:42 +01:00
Takafumi Arakaki
956ad50276 Make more examples in make_definitions 2013-03-15 14:13:55 +01:00
Takafumi Arakaki
3caebcb5aa Add test_basedefinition_type 2013-03-15 13:54:17 +01:00