Daniel Hahler
8621aae73c
Add any .egg-link paths from VIRTUAL_ENV to sys.path
...
Adding test_get_sys_path required factoring out
`_get_venv_sitepackages`, because `sys.version_info` cannot be mocked
apparently.
2015-01-25 21:35:09 +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
95620accdb
Fix tests for namespace packages.
2014-12-10 19:19:13 +01:00
Dave Halter
eead122636
Use grammar in test scripts.
2014-12-07 18:22:11 +01:00
Dave Halter
6058855dd3
test_helpers doesn't make sense anymore, because those the only test it consisted of, was a test with StatementElement, which does not exist anymore in the new parser.
2014-12-07 18:15:18 +01:00
Dave Halter
33b39c2b5d
Don't use the old setup_function/teardown_function pytest stuff. It's very implicit and hard to understand.
2014-12-07 17:21:52 +01:00
Dave Halter
49b34b4d01
Stuff mostly related to namespace packages.
2014-12-07 16:51:54 +01:00
Dave Halter
528b325c39
Remove precedence tests. They are not needed anymore, since precedence is now handled by the parser itself.
2014-12-07 14:41:57 +01:00
Dave Halter
522c9eda90
Remove pr.Name completely.
2014-09-26 16:18:10 +02:00
Dave Halter
4d7db35340
Fix a few last tests, now Jedi's working again, tests are passing.
2014-09-26 16:02:03 +02:00
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