Commit Graph

64 Commits

Author SHA1 Message Date
David Halter
45432c6cb0 documentation and clean up, #181 2013-08-07 18:27:25 +04:30
David Halter
04e454269c add test_integration_keyword.py to test keywords (moved out of test_regression), #181 2013-08-07 18:12:37 +04:30
David Halter
e114c662f9 use jedi.Script.method instead of stupid self calls in tests 2013-08-07 18:00:45 +04:30
David Halter
74edb9e08e test_regression should not be executable 2013-08-07 17:49:52 +04:30
David Halter
297ad635b6 moved more methods out of regression tests, created test_unicode.py, #181 2013-08-07 17:48:57 +04:30
David Halter
4e75cda7f6 moved more methods out of regression tests, created integration_import and jedi_system, #181 2013-08-07 17:41:22 +04:30
David Halter
686e29c2f2 move cache test to the right file, #181 2013-08-07 17:25:47 +04:30
David Halter
0b3a623c8d add a separate jedi system testing file, which helps e.g. if imports are correctly used, #181 2013-08-07 17:20:02 +04:30
David Halter
a7584cfa04 add a separate api testing file, #181 2013-08-07 17:15:36 +04:30
David Halter
5c39b4596c add a separate docstring testing file, #181 2013-08-07 17:10:41 +04:30
David Halter
31e0b89791 add a separate speed testing file, #181 2013-08-07 17:06:24 +04:30
David Halter
6ed33d7c8d remove interpreter test from test_regression 2013-08-07 17:00:46 +04:30
David Halter
d1383965aa refactor call signature tests, use own file (incomplete) 2013-08-07 14:54:42 +04:30
David Halter
2ea2a8c6cd filter all non executables when used with call_signatures, fixes #240 2013-08-07 14:36:35 +04:30
David Halter
1a8227aeec changed no duplicate modules test to respect attributes with the same name as their module 2013-08-06 13:52:25 +04:30
David Halter
0dc3106569 add keyword_names method to keyword module (includes test), fixes #248 2013-08-06 10:55:05 +04:30
David Halter
cef58f89a8 generator problem test 2013-08-01 10:23:22 +02:00
David Halter
1ed94060df fix another position problem with the reverse tokenizer. includes tests. 2013-07-28 21:19:17 +02:00
David Halter
6017daded5 removed statement docstr stuff for now. it will be reintroduced when using the evaluator class 2013-07-19 13:17:27 +02:00
David Halter
b6e9f16a01 fix a completion problem on docstrings 2013-07-17 16:48:50 +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
Takafumi Arakaki
ce92fd946b Add failing test: test_goto_assignments_keyword 2013-05-23 15:32:32 +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
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
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
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
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
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
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
49e51f5a1a deprecated api_classes.Completion.word in favor of name 2013-05-03 20:38:37 +04:30
David Halter
beae920177 Script.complete has been deprecated, therefore changed all usages / documatation to Script.completions 2013-05-03 20:28:11 +04:30
David Halter
4865505215 getattr is now also allowed on modules, fixes #116 2013-05-03 17:00:07 +04:30
David Halter
c37515f938 included test from #162 (seems to be working), fixes #162 2013-05-03 15:01:30 +04:30
David Halter
6204cb740b merge with dev branch 2013-05-03 01:28:50 +04:30
David Halter
4bb4176296 fixed a position problem 2013-05-02 18:56:22 +04:30