Dave Halter
be184241fd
Add SyntaxError.get_message
2020-06-16 08:51:54 +02:00
Dave Halter
3a0a484fcb
Try to get get the tests for Python 3.9 passing, fixes #1608
2020-06-10 09:54:32 +02:00
muffinmad
404661f361
Replace Script by timedelta in the test
2020-06-05 17:44:59 +03:00
muffinmad
1e58f9a15c
Test both named params are found
2020-06-05 15:28:22 +03:00
muffinmad
8705149619
Use pytest.mark.parametrize
2020-06-03 17:20:23 +03:00
muffinmad
782dedd439
Get references in the current module only
2020-06-03 16:35:28 +03:00
muffinmad
7459d67fee
Test local references in some other cases
2020-05-22 13:24:39 +03:00
muffinmad
741097827d
Get references in the current module only
2020-05-21 19:51:13 +03:00
Dave Halter
8fdf16b316
Fix an error of get_definition_end_pos, see #1584
2020-05-18 01:44:51 +02:00
Dave Halter
fa6194c0a9
Refactor test_definition_start_end_position to use parametrize
2020-05-18 01:41:07 +02:00
Dave Halter
2d17b81313
definition_end_position -> get_definition_end_position, same for start, see #1584
2020-05-18 01:18:22 +02:00
Dave Halter
cb1730f628
Merge pull request #1584 from pappasam/get_definition_position
...
Add BaseName.definition_[start,end]_position
2020-05-18 01:14:00 +02:00
Sam Roeca
d848047012
Add unit tests for definition_[start,end]_position
2020-05-17 11:48:28 -04:00
Dave Halter
d16355fcf2
Fix tests in Python 2
2020-05-16 17:47:33 +02:00
Dave Halter
2fb072532a
Skip another non-important Python 2 test that fails on Windows
2020-05-16 01:25:15 +02:00
Dave Halter
384b2ad014
Fix an about dict completions
2020-05-16 00:46:46 +02:00
Dave Halter
381fbeda6a
Make the diff nicer if there is no ending newline, fixes #1581
2020-05-14 00:20:20 +02:00
Dave Halter
3104443212
Merge pull request #1579 from muffinmad/pseudotreenameclass
...
Return 'class' as _PseudoTreeNameClass.type (fix #1578 )
2020-05-13 18:59:05 +02:00
muffinmad
16e2b86bcf
Fix test
2020-05-13 01:18:47 +03:00
Dave Halter
7f25e28d89
Fix tuple issue in 3.6
2020-05-12 23:33:06 +02:00
muffinmad
7ccee7d8fc
Add test _PseudoTreeNameClass.type == 'class'
2020-05-12 23:28:46 +03:00
Dave Halter
7fd5c8af8f
Allow files for get_default_project, fixes #1552
2020-04-26 00:33:10 +02:00
Dave Halter
97fb95ec0c
Don't display unnecessary help, fixes #1557
2020-04-26 00:21:01 +02:00
Dave Halter
94d374c9ce
Fix a small issue with the help method, fixes #1556
2020-04-22 17:32:40 +02:00
Dave Halter
0850b86456
Also don't complete keywords if kwargs only are allowed, see #1541
2020-04-17 23:51:40 +02:00
Michał Górny
7ff76bb7d0
Sort test_project::test_search results to fix failures
...
Fixes #1542
2020-04-15 17:21:40 +02:00
Dave Halter
883f5a3824
Merge branch 'improve-type-annotation-inference' of https://github.com/PeterJCLaw/jedi
2020-04-01 00:54:13 +02:00
Dave Halter
604029568c
Fix string completion issue, fixes #1528
2020-03-26 15:47:27 +01:00
Peter Law
5ca69458d4
Add testing for mismatch cases
...
This should help catch any errors in our handling of invalid cases.
While some of these produce outputs which aren't correct, what
we're checking here is that we don't _error_ while producing that
output.
Also fix a case which this showed up.
2020-03-22 15:10:43 +00:00
Dave Halter
a2f4d1bbe7
Fix stub conversion for Decoratee, so docstrings work, see #117
2020-03-21 17:23:27 +01:00
Dave Halter
5b54ac835d
Fix deprecations in tests
2020-03-21 02:42:00 +01:00
Dave Halter
5f6a25fb58
Add deprecations warnings, to deprecated functions in the main API
2020-03-21 02:30:07 +01:00
Dave Halter
d6d9286242
Get rid of deprecations in tests
2020-03-21 02:15:57 +01:00
Dave Halter
7de475318a
Minor refactoring
2020-03-17 10:00:38 +01:00
Dave Halter
d26926a582
Definition -> Name
2020-03-17 09:33:12 +01:00
Dave Halter
0731206b9d
BaseDefinition -> BaseName
2020-03-17 09:25:30 +01:00
Dave Halter
10bc578bfe
Merge branch 'master' into refactor
2020-03-13 23:53:09 +01:00
Dave Halter
5cd212c51c
Merge branch 'expandtab' of https://github.com/Carreau/jedi
...
Also modify the test a bit to make sure that it passes properly if there are
folders present.
2020-03-13 23:40:48 +01:00
Dave Halter
b247423184
Indentation
2020-03-11 19:26:59 +01:00
Dave Halter
9c77113e21
Fix string completions with quote prefixes, fixes #1503
2020-03-11 19:26:42 +01:00
Dave Halter
886dadaaff
Skip more tests for Python 2/3.5
2020-03-10 20:17:39 +01:00
Dave Halter
bedf3bff0e
Add Project.complete_search instead of the complete param
2020-03-10 08:31:15 +01:00
Dave Halter
d838eaecd2
Implement Script.complete_search instead of the complete param and return Completion objects
2020-03-09 23:55:17 +01:00
Dave Halter
75ae73ee97
Load -stubs packages properly in _load_python_module
2020-03-09 17:27:51 +01:00
Dave Halter
753440682e
Some further testing of code search with stubs
2020-03-08 15:12:57 +01:00
Dave Halter
53f39c88e4
Try to fix a few more stub issues in search
2020-03-08 15:02:00 +01:00
Dave Halter
d3e3021a3d
Care better about stubs for code search
2020-03-08 13:16:06 +01:00
Dave Halter
e46e1269a2
Finally use the string_names attribute to identify module names instead of some fucked up path calculation.
2020-03-08 12:58:44 +01:00
Dave Halter
a5f7412296
Load stub modules if it's a stub
2020-03-08 11:51:39 +01:00
Dave Halter
58998748e3
Make it clear in search tests if a stub or a normal definition is expected
2020-03-07 20:43:57 +01:00