Commit Graph

1142 Commits

Author SHA1 Message Date
Dave Halter fb1dba269a re-enable the interpretation of the None keyword 2014-08-12 14:38:56 +02:00
Dave Halter 469988be9c actually add tests for the flow analysis of variables. 2014-08-12 09:57:00 +02:00
Dave Halter 968bc45314 even tests should not suffer too much from side effects. 2014-08-12 01:46:07 +02:00
Dave Halter f1711f8f9c possible direction of branch checks for name resolution. 2014-08-10 13:17:37 +02:00
Dave Halter 01bdd1e4fa Test fixes and for loops need to be handled a awell in flow_analysis. 2014-08-07 15:51:41 +02:00
Dave Halter 0ae9e520c1 flow analysis working for elif statements (even in combination with else) 2014-08-07 15:18:30 +02:00
Dave Halter 743d064e6d exception while using else as a scope 2014-08-07 12:10:31 +02:00
Dave Halter ee65764c3a more complicated logic working with else 2014-08-07 12:02:08 +02:00
Dave Halter b7151c1ef9 add a first flow analysis test 2014-08-06 23:35:30 +02:00
Dave Halter e7e7bd29e8 fix generator tests (multiple yields must be called with an if random. 2014-08-06 12:45:38 +02:00
Dave Halter 23c39eff9a fix lambda issues 2014-08-06 12:40:08 +02:00
Dave Halter 54dce0e3b2 fix strange issues of Python's std lib tokenizer, might be in there as well (not sure, cause I modified a lot). fixes #449 2014-08-04 16:47:36 +02:00
Dave Halter b2b4827ce3 moved test_token to test_tokenize 2014-08-04 16:25:33 +02:00
Dave Halter cba100a801 test for #414 which doesn't seem to be failing anymore. 2014-08-04 16:08:47 +02:00
Dave Halter 625e88e851 isinstance checks now also give you type hints in class contexts, fixes #241. 2014-08-04 02:11:30 +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 332a16a27e elements in tuples/lists in docstrings were not executed. 2014-07-31 17:13:56 +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
Dave Halter 870abe73d4 Calling an InstanceElement of an Instance of CompiledObject doesn't raise an error anymore. Yes, it's really that complicated. 2014-07-30 19:49:41 +02:00
Dave Halter 723d1e4631 Nicer usage of py_call within InstanceElement and Python 2.7 compatibility 2014-07-30 17:00:16 +02:00
Dave Halter e81749bbe1 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2014-07-30 11:27:46 +02:00
Dave Halter 3c92d175da using super() in actual executed classes wasn't possible. fixes #421 2014-07-30 11:27:27 +02:00
Dave Halter cfe54e83ff incomplete functions shouldn't cause any trouble. fixes #429. 2014-07-28 17:42:20 +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
Dave Halter 440b9b072e Merge pull request #441 from davidhalter/dynamic_inheritance
Dynamic superclasses
2014-07-27 18:26:48 +04:30
Dave Halter 4e04770a75 Merge pull request #451 from davidhalter/issue436
Issue 436: Operator statement wrapper was missing
2014-07-27 18:22:43 +04:30
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
Danilo Bargen e8f479172a Implemented dynamic superclasses 2014-07-27 14:11:48 +02:00
Danilo Bargen c97e1732ee Operator statement wrapper was missing (fixes #436) 2014-07-27 12:53:18 +02:00
Dave Halter 6d99e639cd Merge branch 'add-numpydoc-support' of git://github.com/immerrr/jedi into dev 2014-07-27 11:23:39 +02:00
immerrr 194d87bbad Add basic numpydoc support 2014-07-27 12:51:31 +04:00
Dave Halter 9028641ca7 Merge remote-tracking branch 'origin/namedtuple' into dev 2014-07-27 09:51:50 +02:00
Dave Halter 97a204a985 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2014-07-27 09:44:25 +02:00
Dave Halter 606b6851ff remove the scope_names_generator stuff again. We should enable it somewhere in time, but for now it just breaks tests. 2014-07-27 09:43:22 +02: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
Danilo Bargen d3620fd84f Implemented support for namedtuples (fixes #107)
Note that namedtuples are only supported for Python >2.6.
2014-07-26 17:51:38 +02:00
Danilo Bargen efebb2d6d0 Added tests for random.choice 2014-07-26 17:40:08 +02:00
Danilo Bargen 2a1c108bbf Fixed whitespace problems in completion tests 2014-07-26 17:39:05 +02:00
Dave Halter c85bdb8ff1 little edge case of modules that don't have a scope_names_generator, which is unfortunately missing, but not really used in Jedi.
At europython's hackathon we played with it and @scoder added a small script to cython/Cython/Compiler/JediTyper.py, which makes it possible to add Cython types to a Python script.
2014-07-26 13:18:04 +02:00
Dave Halter 5e9d9573d5 Don't warn on addition of an int literal plus an unknown int number. 2014-07-22 16:44:10 +02:00
Dave Halter f7c8c43fbc check not only - but also + for numbers. 2014-07-22 16:18:57 +02:00
Dave Halter 96ca596cc2 fix the operation test where static analysis reports additions of ints with non-ints. 2014-07-22 16:05:46 +02:00
Dave Halter 15f42d93d7 it should be possible to find the origin of an operation, if it's a faulty one (static analysis) 2014-07-22 14:52:58 +02:00