Laurens Van Houtven
e39f8a246e
Merge branch 'dev' of git://github.com/davidhalter/jedi
2013-06-23 22:50:00 +02:00
Laurens Van Houtven
368c7fd5b5
Only deal with explicit absolute_import
2013-06-23 22:30:53 +02:00
Laurens Van Houtven
58b165e4b6
Don't assume either namespace is not-None
2013-06-23 22:02:37 +02:00
Laurens Van Houtven
e82e3eaa0d
Don't assume every module has a namespace
2013-06-23 21:59:58 +02:00
Laurens Van Houtven
adec666994
py.test skipping evaluation rules are kinda silly, and in this case completely useless
2013-06-23 21:56:00 +02:00
Laurens Van Houtven
cb4acccfe5
More PEP8, minor cleanup
2013-06-22 09:54:18 +02:00
Laurens Van Houtven
ae94a2cda1
Remove stale import
2013-06-22 08:57:02 +02:00
Laurens Van Houtven
397b881c96
PEP8 whitespace
2013-06-22 08:56:32 +02:00
Laurens Van Houtven
0b3955a257
Remove minimal_demo.py demo script
2013-06-22 08:53:51 +02:00
Laurens Van Houtven
38daa3cc34
Add failing test case
2013-06-21 19:49:05 +02:00
Laurens Van Houtven
d32045303f
Add absolute_import failing SSCCE, and get pytest to ignore it
2013-06-21 19:25:18 +02:00
Laurens Van Houtven
5701ac1a10
Add absolute import detection
2013-06-21 17:02:17 +02:00
Takafumi Arakaki
71455f6b31
Add another failing case
2013-05-24 22:05:12 +02:00
Takafumi Arakaki
105bb2b1ca
ModuleWithCursor.get_path_until_cursor cannot handle "\"
...
It raises: IndexError: string index out of range
2013-05-24 19:43:23 +02:00
David Halter
b0116b0d7c
Merge pull request #232 from tkf/unicode-has-no-generate_call_path
...
Fix: 'unicode' object has no attribute 'generate_call_path'
2013-05-23 22:33:02 -07:00
Takafumi Arakaki
45bddec83a
Add more complex assignment tests
2013-05-23 23:41:41 +02:00
Takafumi Arakaki
ced1a83f5b
Add a failing test: "a = b = 1"-style assignment
2013-05-23 23:28:30 +02:00
Takafumi Arakaki
ce92fd946b
Add failing test: test_goto_assignments_keyword
2013-05-23 15:32:32 +02:00
Takafumi Arakaki
0ee2c16551
Add TestDefinedNames.test_nested_class
2013-05-21 20:16:44 +02:00
David Halter
fbf17e3e5b
Merge pull request #228 from tkf/fix-full_name
...
Fix full_name for import statements
2013-05-21 09:11:15 -07:00
Takafumi Arakaki
46ac76e8be
Reproduce the previous test failure w/o stdlib
...
It turned out that the failure occurs when you define "fake module path"
by importing some module from others. Indeed, this is what happens
in os.py.
2013-05-21 17:40:20 +02:00
Takafumi Arakaki
1a5942364a
Add failing tests for first part of #213
2013-05-21 17:16:40 +02:00
Takafumi Arakaki
91f3d524de
Document test_full_name.py
2013-05-21 16:57:40 +02:00
Takafumi Arakaki
5d6719ed8c
Add tests for defined_names + full_name
2013-05-21 14:23:58 +02:00
Takafumi Arakaki
f4982606d8
Refactor tests for full_name
2013-05-21 12:10:03 +02:00
David Halter
5567a42334
fix another keyword problem
2013-05-21 10:59:28 +04:30
David Halter
a9bf06987a
completion on empty import problem
2013-05-19 21:13:32 +04:30
David Halter
384334ae06
goto on import statement (only import) raised an error
2013-05-19 20:40:54 +04:30
David Halter
c5169b2d66
parsing.Parser.scope -> parsing.Parser._scope, fixes #224
2013-05-19 10:25:00 +04:30
Takafumi Arakaki
e011683ea4
dedent source before passing it to defined_names
...
test_nested_definitions fails now
2013-05-19 05:08:18 +02:00
Takafumi Arakaki
6fadfb573c
Refactor TestDefinedNames
2013-05-19 05:08:18 +02:00
Takafumi Arakaki
29f74c245d
Move tests for defined_names to test_defined_names.py
2013-05-19 05:08:18 +02:00
Takafumi Arakaki
ee5f96f119
Fix test failure
...
The bug was introduced when I merged branch 'interpreter-api' at
5f2477d5bf .
This patch redo (part of) 2846fe980b .
2013-05-18 23:25:54 +02:00
Takafumi Arakaki
5f2477d5bf
Merge branch 'interpreter-api' into dev
...
Conflicts:
jedi/__init__.py
test/test_regression.py
See: #145
2013-05-18 22:28:56 +02:00
David Halter
7e2eb587e1
is_keyword test
2013-05-18 23:56:12 +04:30
David Halter
15885e8685
preload_module function for IDEs, to control which modules to load on startup, refs #102
2013-05-13 09:13:59 +04:30
Takafumi Arakaki
2846fe980b
Remove api._quick_complete
2013-05-11 21:40:00 +02:00
David Halter
ad56b6cc89
fix title length (docstr stuff)
2013-05-11 11:02:13 +04:30
David Halter
3a7c8af87f
also normal imports should return the right user_stmt, similar case than #137
2013-05-09 12:16:54 +04:30
David Halter
f3a4439285
import end_pos calculated differently, fixes #137
2013-05-09 11:54:08 +04:30
David Halter
4b4681d285
re-enable test, probably related to #131
2013-05-08 00:01:22 +04:30
David Halter
f4e8972157
end_pos issues, fixes #150
2013-05-07 23:55:58 +04:30
Takafumi Arakaki
17f5b9a79d
Fix test failure in Python 3.3
...
There is a new method introduced in Python 3.3:
http://docs.python.org/3/library/datetime.html#datetime.datetime.timestamp
2013-05-04 18:10:20 +02:00
Takafumi Arakaki
dc47d15de0
Use locals() for tests in TestInterpreterAPI
...
It is better to check that Interpreter does not fail with the
real name space. Previously the doctest using locals() failed
because of the bug in _import_raw_namespace.
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
fc79f0e258
Support case like from os.path import join as pjoin
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
b4e3d1d65d
Fix test_complete_raw_instance example
...
'dt.strftime("%Y").up' does not work even if with `api.Script`.
Change it to the one that can be handled by Jedi.
2013-05-04 17:44:59 +02:00
Takafumi Arakaki
fb197c42ab
Add tests for api.Interpreter (2/3 fail)
2013-05-04 17:44:58 +02:00
David Halter
2e0d0bb4f5
test for #210
2013-05-04 13:44:15 +04:30
David Halter
698ee7af28
removed an old part_parser test
2013-05-03 21:35:28 +04:30
David Halter
4d0417f591
change some definition usages to goto_definitions in tests and docs
2013-05-03 21:35:01 +04:30