Commit Graph

55 Commits

Author SHA1 Message Date
Dave Halter
9f16555f47 Big refactoring: BaseDefinition._definnition changes to BaseDefinition._name, because it's a NamePart now.
This also includes changes to tests and some simplifications like deleting the old name logic of Definition.
2014-09-11 01:03:30 +02:00
Dave Halter
43cf1d451f Python 2/3 compatibility issues that were not resolved in the latest commit. 2014-09-09 17:51:39 +02:00
Dave Halter
fdc637c5c4 Add a forgotten test module, test_sys_path.py and fix Python2/3 compatibility issues. 2014-09-09 17:08:22 +02:00
Dave Halter
45e033c50e Quite a few fixes to be eventually able to use NameParts as Definition inputs. 2014-09-09 15:21:27 +02:00
Dave Halter
7b2e11d71b Rewrote sys_path._paths_from_assignment. 2014-09-04 14:12:10 +02:00
Dave Halter
ea5b98905e Make statement_elements_in_statement work with ListComprehensions, Lambdas and 'except foo as' expressions 2014-09-02 14:52:04 +02:00
Dave Halter
38c71fce3f Added tests for statement_elements_in_statement 2014-09-02 12:10:16 +02:00
Dave Halter
76d91ba72a Rename fast_parent_copy to deep_ast_copy. 2014-08-22 00:59:46 +02:00
Dave Halter
8bde89cc58 Fix the remaining issues with the StatementElement.next refactoring. 2014-08-19 00:12:14 +02:00
Dave Halter
1965469050 fast_parent_copy should also change the parent of NameParts. 2014-08-14 23:48:27 +02:00
Dave Halter
68cecad996 tests for py__mro__ 2014-08-01 15:50:18 +02:00
Dave Halter
7b4a188948 fix a few small issues that remained in the tests 2014-07-31 17:34:35 +02:00
Dave Halter
a86cfa2dd7 Merge pull request #453 from alga/dev
Europython2014 davidhalter/jedi#361attempt
2014-07-27 20:58:03 +04:30
Albertas Agejevas
ecb2085174 Add flask.ext to the test fixture so tests pass even without flask installed. 2014-07-27 17:59:09 +02:00
Albertas Agejevas
ab486ba84f List old-style flask extensions, too. 2014-07-27 17:00:17 +02:00
Albertas Agejevas
7f45bfe689 More on #361: enumerate new-style flask extensions. 2014-07-27 16:08:26 +02:00
Albertas Agejevas
5edd2274b2 Fix an exception in the flask ext code. 2014-07-27 15:04:55 +02:00
Albertas Agejevas
a18f8a7cbb Make tests terser. pytest rules! 2014-07-27 15:04:46 +02:00
Albertas Agejevas
13c1f79d5c A stab at davidhalter/jedi#361 (Flask extension imports)
Both new-style and old-style extensions work, but only when imported
with a 'from'.  There are two skipped tests of the full dotted name
imports.

Also, our fixture has a normal flaskext package, whereas in practice
the flaskext module is injected from a pth file and does not have
__init__.py, we need to figure out to handle that.
2014-07-27 15:04:31 +02:00
immerrr
194d87bbad Add basic numpydoc support 2014-07-27 12:51:31 +04:00
Pawel Palucki
d359f5d043 Sphinx oneline param type declaration feature
allows for type definition in ":param keyword"
2014-07-26 22:15:56 +02:00
Akinori Hattori
712e5653d8 use _ctypes for extension tests 2014-07-19 14:39:14 +09:00
Akinori Hattori
10b7ed967d organize imports 2014-07-19 10:41:19 +09:00
Akinori Hattori
00b8263859 fix buildout test for Windows 2014-07-19 10:39:45 +09:00
Dave Halter
08f7a439c0 merged dev and linter 2014-07-17 23:17:49 +02:00
Dave Halter
22e5574a91 Remove some get_defined_names methods, that are not needed anymore. 2014-07-03 12:12:50 +02:00
Dave Halter
ede685c717 string prefixes are now recognized by the backwards tokenizer 2014-07-01 01:19:07 +02:00
Mathias Fussenegger
bf43fcf1c6 detect buildout and add buildout eggs to sys.path 2014-06-18 18:30:11 +02:00
Dave Halter
a373818965 fix function execution mutable list issue 2014-06-16 17:12:27 +02:00
Dave Halter
ef62904af3 python 2 compatibility (also with the new travis build) 2014-05-04 11:50:13 +02:00
Dave Halter
4bc55be103 significant speedup due to compiled caching 2014-04-13 16:31:38 +02:00
Dave Halter
1facdb2961 test for 3 part slice precedences 2014-04-03 18:59:16 +02:00
Dave Halter
e681ed9fda test for #178, docstring type annotations should be executed 2014-04-02 20:41:25 +02:00
Dave Halter
5aa6c770b3 refactor follow_definition tests 2014-03-23 12:40:33 +01:00
Dave Halter
fa0502d762 again testing improvements. follow_definitions imports are now pretty much covered 2014-03-21 13:50:29 +01:00
Dave Halter
eeeeee49f5 new tests for that whole import mess 2014-03-21 11:12:40 +01:00
Dave Halter
58026c6542 temporary conversion of the imports module to separate import processing from actually importing things 2014-03-19 16:40:38 +01:00
Dave Halter
9f12352ec1 tests for import completions and a following follow_definition call 2014-03-17 11:58:29 +01:00
Dave Halter
1d95a987c4 move test_pyc to test_evaluate 2014-03-17 08:54:29 +01:00
Dave Halter
2457da0e7d moved extension tests into test_evaluate folder 2014-03-11 12:37:02 +01:00
Dave Halter
f8336d7176 fix a unicode issue (test input was not unicode) 2014-03-10 17:15:41 +01:00
Dave Halter
61fa9b7fb4 start using precedences, working good with only a few test fails 2014-03-09 02:10:59 +01:00
Dave Halter
48dd8f9cb0 slice precedences should be working as well. 2014-03-09 01:05:46 +01:00
Dave Halter
11346d0901 get the 'not' priorities right for precedences 2014-03-08 03:14:05 +01:00
Dave Halter
3559dba7ea to the power of precedences 2014-03-08 03:05:38 +01:00
Dave Halter
0a253b4651 MultiPart string precedences seem to be working now 2014-03-08 02:52:26 +01:00
Dave Halter
0dcc924cf8 precedence working for some simple cases (and invalid statements) 2014-03-08 02:24:25 +01:00
Dave Halter
f2e2a684d5 precedence tests and a parse_tree method for Precedence objects 2014-03-07 15:05:28 +01:00
Dave Halter
ca460ac34f fixed a problem with docstrings that were empty (None), docstrings in Jedi are always strings. 2014-03-06 12:20:11 +01:00
Dave Halter
44e16c11e5 fixed docstr problems with unified interfaces 2014-02-26 02:33:18 +01:00