Commit Graph

82 Commits

Author SHA1 Message Date
Dave Halter
41c146a6f3 Implement magic method return values, fixes #1577 2020-05-15 23:53:44 +02:00
Jelte Fennema
3bdb941daa Add an exact_key_items method to DictComprehension fixes #1233 2018-10-14 17:08:44 +02:00
Dave Halter
51e0d5d12f Fix issues with default parameters in functions and classes
Default parameters were resolved at the wrong starting position. Fixes #1044
2018-03-08 09:59:09 +01:00
Dave Halter
9cac7462d6 Return statements should be handled correctly if the return_stmt is only a return without an expression behind it. 2017-09-02 14:03:54 +02:00
Dave Halter
c82691a12b Make goto_definitions a lot simpler. 2016-06-11 23:13:04 +02:00
Dave Halter
c12dbe0b9e Fix a few tests that failed, because they were not correct python (the context was wrong). 2016-05-30 20:10:17 +02:00
Dave Halter
936cef97e9 Fix param position lookups. Also forward annotations have the correct resolution path now (starting at the end of the file). 2015-12-22 11:25:32 +01:00
Dave Halter
ffeedb32de Fix remaining issues with FakeDict. 2015-12-05 22:33:41 +01:00
Dave Halter
09da6ec0d3 Function annotations don't need to be tested in Python 2.7. 2015-01-13 01:00:08 +01:00
Dave Halter
267016f533 Function for evaluating functions with already executed arguments. 2014-11-23 19:12:25 +01:00
Dave Halter
14ec210891 param default values. 2014-10-27 12:03:09 +01:00
Dave Halter
c0768924f6 Managed to get dict inputs working into kwargs. This was wrong in the old version of the parser. 2014-10-27 01:07:15 +01:00
Dave Halter
93c97a78a3 Fix an issue with classes and decorators combined. 2014-10-24 00:41:26 +02:00
Dave Halter
23c39eff9a fix lambda issues 2014-08-06 12:40:08 +02:00
Dave Halter
d09279e0ad change tests that provided wrong instance information 2014-07-31 15:16:24 +02:00
Dave Halter
50fa3a732d actually start checking if the integration tests are instances on both sides of the comparison. This wasnt necessary for just autocompletion, but it's way more important now. 2014-07-31 14:58:32 +02:00
Danilo Bargen
2a1c108bbf Fixed whitespace problems in completion tests 2014-07-26 17:39:05 +02:00
Dave Halter
f7a384bf18 fix a multi line issue of var_args with an error token or newline in the beginning. 2014-07-01 12:45:34 +02:00
Dave Halter
acfa40afa7 *args without self but still an implicit self from a method decorator 2014-06-12 22:42:15 +02:00
Dave Halter
b24178b275 multiple values refactoring in params 2014-05-29 16:59:56 +02:00
Dave Halter
f71e2d5b8f keyword/default param tests 2014-05-26 11:21:16 +02:00
Dave Halter
937ab602ae add a lambda integration testing file 2014-03-11 11:59:17 +01:00
Dave Halter
7f0e31798a fix an old test case that was always wrong anyway 2014-03-09 12:40:38 +01:00
David Halter
0dc3d5e195 *args/**kwargs tests for #235 (failing tests) 2013-08-06 15:34:12 +04:30
David Halter
22edd6a149 *args/**kwargs tests for #235 (those are working) 2013-08-06 15:21:40 +04:30
David Halter
3c96ef8905 test for lambdas in InstanceElements 2013-07-24 16:16:20 +02:00
David Halter
471f492f12 generators in *args and illegal *args like *1 2013-07-23 00:07:17 +02:00
David Halter
6a2afa7e94 failing test for illegal unpacking with * 2013-07-22 14:42:39 +02:00
David Halter
2ad3121aa3 test for empty statement problem in function call 2013-07-17 15:02:56 +02:00
David Halter
de5de41627 fix last failing function tests 2013-02-11 00:06:31 +01:00
David Halter
6ab9390bce lambdas: fix remaining problems with tests 2012-12-24 01:28:03 +01:00
David Halter
716d2362fd fixed mostly wrong lambda tests (and a few lambda improvements as well) 2012-12-23 15:52:49 +01:00
David Halter
c7fd196850 get_code is now able to process returns again 2012-12-22 20:28:34 +01:00
David Halter
3fbf66f42c 14 lambda tests 2012-12-22 18:59:55 +01:00
David Halter
b571964939 param arguments that are being forgotten by the user are now added (no strange behaviour anymore) 2012-11-30 18:00:48 +01:00
David Halter
99aed7ce91 added magic function names to completion, fixes nothing, but makes jedi more awesome :-D 2012-11-30 16:27:24 +01:00
David Halter
5423dda8d3 multi line funcs with comments don't raise an error anymore - fixes jedi-vim issue 29 2012-11-12 18:07:25 +01:00
David Halter
948b72d27f fix for #51 2012-11-02 17:01:33 +01:00
David Halter
1afdb69314 function annotations are now safely ignored by the evaluation. the parser just stores them in the right objects. 2012-09-02 12:39:11 +02:00
David Halter
4739eb6c02 changed the way the tests react, when multiple elements are produced 2012-07-12 16:19:47 +02:00
David Halter
9b09e11114 tests for an additional variable in *args, **args 2012-07-11 02:28:55 +02:00
David Halter
81c29d58d0 tests for an additional variable in *args, **args 2012-07-11 02:25:43 +02:00
David Halter
a0b5bbe6db removed test cases, which who are not python compatible and just something else 2012-07-11 02:19:10 +02:00
David Halter
e8c1b8c5bd more kwargs tests 2012-07-11 02:09:52 +02:00
David Halter
fd4e0ba775 new args/kwargs tests 2012-07-11 02:02:54 +02:00
David Halter
37f2b8ff56 recursions are now being catched 2012-07-09 12:05:07 +02:00
David Halter
8d26cff54b changed many tests from old completion tests to type tests, which brings more security 2012-07-06 01:29:50 +02:00
David Halter
fdfd475d40 position stuff works now also with function that are located after the just called function 2012-07-06 01:07:17 +02:00
David Halter
28ad77406f default of no arguments at an execution changed to a parsing.Array 2012-07-05 18:22:56 +02:00
David Halter
19a5d788c4 generators can now be indexed, don't know if this is a good thing. however, it fixes some problems with lists 2012-06-27 14:35:12 +02:00