Commit Graph

2169 Commits

Author SHA1 Message Date
Takafumi Arakaki
ba7d29f542 Add a test for multiple assignment 2013-03-10 20:40:14 +01:00
Takafumi Arakaki
cbcaa85108 Add :attr:Definition.names 2013-03-10 20:40:14 +01:00
Takafumi Arakaki
39feecee04 Add new API: jedi.api.get_definitions 2013-03-10 20:40:14 +01:00
Takafumi Arakaki
c3aaf7b4ba Show line_nr of test comment, not the line after 2013-03-10 20:26:09 +01:00
Takafumi Arakaki
59030daa60 Add --test-files option to py.test
At this point, py.test should be equivalent to test/run.py
2013-03-10 19:00:46 +01:00
Takafumi Arakaki
9018cea22e Rewrite integration test using py.test 2013-03-10 19:00:44 +01:00
Takafumi Arakaki
3b41a47c08 Re-add sys.path setup in test/base.py 2013-03-10 18:58:32 +01:00
Takafumi Arakaki
20c9709aef Do not change cwd at import time 2013-03-10 17:28:48 +01:00
Takafumi Arakaki
00912e69fe Completely separate test collection and run 2013-03-10 16:34:54 +01:00
Takafumi Arakaki
6a10f79551 Do not destruct test case in run_test 2013-03-10 14:24:05 +01:00
Takafumi Arakaki
418bce909a run_{test_type} functions takes same args now 2013-03-10 13:16:05 +01:00
Takafumi Arakaki
932ce397d6 Separate test collection and run 2013-03-10 12:21:12 +01:00
David Halter
90c800b257 remove repl style comments and use indented blocks instead, #146 2013-03-01 19:52:36 +04:30
David Halter
ee6a261b42 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2013-03-01 00:35:18 +04:30
David Halter
e3b33fc009 fixed a unicode problem caused by a wrongly placed docstring 2013-03-01 00:32:54 +04:30
David Halter
68a9cecb27 improved run test documentation 2013-03-01 00:31:51 +04:30
David Halter
c808bcef70 little description of regression and refactor 2013-03-01 00:23:13 +04:30
David Halter
669dfda419 run documentation improved 2013-03-01 00:19:05 +04:30
David Halter
855d683d9a switched to __name__ == '__main__' checks for tests 2013-03-01 00:07:36 +04:30
David Halter
1834ef51b1 basic testing docstring for run.py 2013-02-28 23:57:33 +04:30
Takafumi Arakaki
6d2f7558fb Run doctests on Travis CI 2013-02-26 10:45:58 +01:00
Takafumi Arakaki
38fc49022f Include __init__ call signature in Class.doc 2013-02-25 01:50:31 +01:00
Takafumi Arakaki
4ba9fd2b68 Fix Statement.get_code
Parsed Statement.assignment_details must be used.  Otherwise,
incorrect code is returned at the first time Statement.get_code
is called.
2013-02-25 01:43:22 +01:00
Takafumi Arakaki
e1e2ed8fcc Add a test for docstring in call signature 2013-02-24 22:45:10 +01:00
Takafumi Arakaki
7f00b9414e Check the case where multiple docstrings are defined 2013-02-24 20:58:43 +01:00
Takafumi Arakaki
aad9c34db6 Include statements to Script.definition if it has docstring 2013-02-24 20:56:09 +01:00
Takafumi Arakaki
540eff3d42 Add test_attribute_docstring 2013-02-24 19:39:59 +01:00
Takafumi Arakaki
524feca0de Add TestDocstring 2013-02-24 17:40:18 +01:00
David Halter
6ea64a28bf dev/refactor merge 2013-02-23 20:53:57 +04:30
David Halter
4d7aad4ce8 deleted old crap code 2013-02-23 01:13:21 +04:30
David Halter
c1e805d7b0 fixed invalid list comprehension tests 2013-02-22 23:06:59 +04:30
David Halter
b0c3fd5439 api.Script.get_definition -> definition, to be consistent in the api naming. deprecated api.Script.get_definition 2013-02-21 22:12:51 +04:30
David Halter
f8e0c78f77 Script.get_in_function_call -> Script.function_definition 2013-02-21 22:05:39 +04:30
David Halter
d05018757d completely rewrote helpers.search_function_definition 2013-02-21 19:56:05 +04:30
David Halter
1b7fc1ee50 fixes for goto 2013-02-19 00:21:04 +04:30
David Halter
c3fe5d04dd line_offset to offset in Parser, which is important for exact positioning 2013-02-18 23:17:41 +04:30
Danilo Bargen
ea9a667425 Fixed issue with repr encoding (fixes davidhalter/jedi-vim#94) 2013-02-14 21:10:06 +01:00
Danilo Bargen
3ab2b0a244 Added (failing) regression test for davidhalter/jedi-vim#94 2013-02-14 20:26:31 +01:00
David Halter
de5de41627 fix last failing function tests 2013-02-11 00:06:31 +01:00
David Halter
5be5d08441 heapy debugging in run.py 2013-02-07 10:18:19 +01:00
David Halter
3c1ebc02cc fix last remaining bugs of the big evaluate_representation refactoring 2013-02-05 17:21:23 +01:00
Takafumi Arakaki
0cbbb17a82 Add tests in completion/docstring.py 2013-01-30 21:23:04 +01:00
Takafumi Arakaki
e12212942f Add a failing test for type inference from docstring 2013-01-30 01:01:25 +01:00
David Halter
f3f7eacae3 fix a little problem with import keyword autocompletion 2013-01-14 22:35:32 +01:00
David Halter
35e55fab25 improved import statement keyword autocompletion, #111 2013-01-14 22:32:34 +01:00
David Halter
ac2b0016d5 fix import problems with negative kill_counts, fixes #111 2013-01-14 21:25:48 +01:00
David Halter
d08ee04fbb regression tests for #111 2013-01-14 18:41:09 +01:00
David Halter
7b150630f0 stopiteration works in strange ways in the parser in py2, fixes #70, affects probably davidhalter/jedi-vim#68 2013-01-12 12:15:32 +01:00
David Halter
00f7088c05 test for davidhalter/jedi-vim#70 2013-01-12 00:11:38 +01:00
David Halter
bc6005d833 add a newline to tests 2013-01-09 22:49:25 +01:00