Takafumi Arakaki
cee167e3d2
Run py.test in clean cache directory
...
And finally remove XDG_CACHE_HOME=... in tox.ini.
2013-03-12 09:30:13 +01:00
Takafumi Arakaki
5c3252908f
Use PIP_INSECURE=t
2013-03-12 09:29:00 +01:00
Takafumi Arakaki
ab33400f76
Install libbluetooth-dev for Python 2.5
2013-03-12 09:21:30 +01:00
Takafumi Arakaki
135dd56e61
Install libssl-dev for Python 2.5
2013-03-12 09:15:30 +01:00
Takafumi Arakaki
9e600ed0b1
Use --insecure when running pip with Python 2.5
2013-03-12 09:04:56 +01:00
Takafumi Arakaki
e7b352b826
Install ssl in .travis.yml
2013-03-12 09:01:56 +01:00
Takafumi Arakaki
674743b7bb
Avoid NoSSLError in Python 2.5
2013-03-12 08:49:24 +01:00
Takafumi Arakaki
88adcbcf8a
Use tox in .travis.yml
2013-03-12 08:03:55 +01:00
Takafumi Arakaki
13b48632e5
Better assertion message formatter
2013-03-12 07:58:40 +01:00
Takafumi Arakaki
71bb93224d
Ignore first N failures in Python 2.5
2013-03-12 07:48:20 +01:00
Takafumi Arakaki
180d0a8764
Rename regression.py to test_regression.py
...
in order to let py.test collect the tests.
2013-03-12 07:12:44 +01:00
Takafumi Arakaki
0f9761aac7
Fix tests for Python 3.2 (use relative import)
2013-03-12 07:11:37 +01:00
Takafumi Arakaki
51a094be02
Run py.test in tox.ini
2013-03-12 07:08:52 +01:00
Takafumi Arakaki
a993dd0da4
Fix test_refactor
...
It was not run because test cases were collected from test/complete
instead of test/refactor.
2013-03-12 07:00:44 +01:00
Takafumi Arakaki
a31ba8737a
Run refactoring test using py.test
...
refactor.collect_file_tests is fixed; it uses global variable
refactoring_test_dir which is not defined when refactor is used
as a module.
2013-03-12 06:50:03 +01:00
Takafumi Arakaki
9791f04555
Reduce args for RefactoringCase
2013-03-10 23:06:42 +01:00
Takafumi Arakaki
2362e290d8
Separate methods in RefactoringCase
2013-03-10 23:06:41 +01:00
Takafumi Arakaki
0a13b8f114
Separate test collection and run in refactoring.py
2013-03-10 23:06:39 +01:00
Takafumi Arakaki
50e1fad8f6
Remove tests from regression.py
2013-03-10 21:29:09 +01:00
Takafumi Arakaki
fa231b58a8
Add more test cases in completion/definition.py
2013-03-10 21:29:09 +01:00
Takafumi Arakaki
5f49fb8c7c
Add blackbox tests using column number
2013-03-10 21:29:09 +01:00
Takafumi Arakaki
31df9a92fe
Add test/completion/definition.py
2013-03-10 21:29:09 +01:00
Takafumi Arakaki
c6c17d7ed5
Add known failing test for function_definition
2013-03-10 21:29:09 +01:00
Takafumi Arakaki
ab79689cee
Use unittest2 for Python < 2.7
2013-03-10 21:28:27 +01:00
Takafumi Arakaki
3542b7f80a
Refactor tests for function_definition
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
0e99c33c67
Don't use NotFoundError in _func_call_and_param_index
...
This makes it simpler.
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
7ce0e1c178
Rename it to _func_call_and_param_index
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
d9b3bb4016
Refactor _get_function_call_and_param_index_at_point
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
4d6abfb8de
Fix a failing test in Python 3
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
1eae32c182
Skip test case for finding definition at f( |)
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
c546323bca
Tests for f(| ) and f( |) (the latter fails)
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
9490730d59
Treat case like f()
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
8f3db6976b
Fix test for issue #94
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
b8e3e0c157
Add tests for Script.definition when in function call
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
a25aa884d6
Make Script.definition work inside function call
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
0a09d8a813
Refactor function_definition
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
871ce5ad33
Compatibility fix for Python 2.5
2013-03-10 20:44:15 +01:00
Takafumi Arakaki
a02940f3c1
Rename api.get_definitions to defined_names
...
Do the same for Definition.get_definitions also.
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
36f03f4b0d
Use the first item returned by get_names_of_scope
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
06de4d66e7
Revert "Add get_names_of_scope option to evaluate.get_names_of_scope"
...
This reverts commit 154662ea273a17f00186546bdf9d75833553d307.
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
d4bf14dd66
Use list comprehension instead of map
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
bc32844bd7
Add TestGetDefinitions.test_dotted_assignment
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
5a29fecfb2
Fix Python 3 syntax error
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
71d5b0ac67
Document return type of get_names_of_scope
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
87714460a2
Add get_names_of_scope option to evaluate.get_names_of_scope
...
Previously failing test passes now.
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
3fbe7e9ff4
Rewrite get_definitions using evaluate.get_names_of_scope
...
- Definition.names is changed to Definition.name.
- TestGetDefinitions.test_nested_definitions fails.
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
1eccf2f765
Make sure get_definitions returns list in Python 3
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
89bfdd2b2d
Test that full_name works with get_definitions
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
08f45d1f95
Fix Definition.get_definitions
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
0f67b3e0c2
More robust Definition.names
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
d0ad14adf4
Fix Definition.names for star import
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
ba7d29f542
Add a test for multiple assignment
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
cbcaa85108
Add :attr:Definition.names
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
39feecee04
Add new API: jedi.api.get_definitions
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
c3aaf7b4ba
Show line_nr of test comment, not the line after
2013-03-10 20:26:09 +01:00
Takafumi Arakaki
59030daa60
Add --test-files option to py.test
...
At this point, py.test should be equivalent to test/run.py
2013-03-10 19:00:46 +01:00
Takafumi Arakaki
9018cea22e
Rewrite integration test using py.test
2013-03-10 19:00:44 +01:00
Takafumi Arakaki
3b41a47c08
Re-add sys.path setup in test/base.py
2013-03-10 18:58:32 +01:00
Takafumi Arakaki
20c9709aef
Do not change cwd at import time
2013-03-10 17:28:48 +01:00
Takafumi Arakaki
00912e69fe
Completely separate test collection and run
2013-03-10 16:34:54 +01:00
Takafumi Arakaki
6a10f79551
Do not destruct test case in run_test
2013-03-10 14:24:05 +01:00
Takafumi Arakaki
418bce909a
run_{test_type} functions takes same args now
2013-03-10 13:16:05 +01:00
Takafumi Arakaki
932ce397d6
Separate test collection and run
2013-03-10 12:21:12 +01:00
Takafumi Arakaki
8d486ff9aa
Make doctest Python 3.x compatible
2013-03-04 02:07:47 +01:00
Takafumi Arakaki
0c6f7f66e9
Document get_names_of_scope with examples
2013-03-03 15:49:49 +01:00
Takafumi Arakaki
11707ffbbb
Document evaluate.get_defined_names_for_position
2013-03-03 15:29:26 +01:00
Takafumi Arakaki
8e85adb718
Document Scope.get_defined_names
2013-03-03 15:19:34 +01:00
Takafumi Arakaki
d256c5470c
Add a very short tutorial on parsing_representation
2013-03-03 14:55:24 +01:00
Takafumi Arakaki
99ab2dec15
Document pr.SubModule
2013-03-03 14:45:07 +01:00
Takafumi Arakaki
77e8b2aecd
Remove a philosophical (and confusing) statement
2013-03-03 14:18:58 +01:00
Takafumi Arakaki
ac159bac07
Document pr.Simple.__init__
2013-03-03 14:17:16 +01:00
Takafumi Arakaki
dc9a269d35
Use literal block instead of >>> for code example
2013-03-03 14:07:48 +01:00
Takafumi Arakaki
700493cac8
Fix and improve Statement.__doc__
...
- The type of `set_vars` and `used_vars` were wrong.
- ":param ...:" was used instead of ":type ...:".
- The parameter table is aligned to make it easier to read.
2013-03-03 14:07:07 +01:00
Takafumi Arakaki
9ba9e2c3a6
Make doctest work on Python 2.5
2013-02-26 10:58:24 +01:00
Takafumi Arakaki
6d2f7558fb
Run doctests on Travis CI
2013-02-26 10:45:58 +01:00
Takafumi Arakaki
b56c212a2c
Fix renamed functions in docstring
2013-02-26 10:36:29 +01:00
Takafumi Arakaki
95a98c9033
Do not use >>> for non-doctest code example
...
Use literal block instead.
2013-02-26 10:36:08 +01:00
Takafumi Arakaki
dad9cf0518
Print str to avoid u prefix
2013-02-26 10:28:25 +01:00
Takafumi Arakaki
668be37089
Use nose to run doctests
2013-02-26 10:25:16 +01:00
Takafumi Arakaki
38fc49022f
Include __init__ call signature in Class.doc
2013-02-25 01:50:31 +01:00
Takafumi Arakaki
4ba9fd2b68
Fix Statement.get_code
...
Parsed Statement.assignment_details must be used. Otherwise,
incorrect code is returned at the first time Statement.get_code
is called.
2013-02-25 01:43:22 +01:00
Takafumi Arakaki
e1e2ed8fcc
Add a test for docstring in call signature
2013-02-24 22:45:10 +01:00
Takafumi Arakaki
c911255d6e
Add inheritance-diagram to Sphinx documentation
2013-02-24 21:20:00 +01:00
Takafumi Arakaki
7f00b9414e
Check the case where multiple docstrings are defined
2013-02-24 20:58:43 +01:00
Takafumi Arakaki
aad9c34db6
Include statements to Script.definition if it has docstring
2013-02-24 20:56:09 +01:00
Takafumi Arakaki
e458b35f1c
Unconditionally set attribute docstrings
...
As Statement.assignment_details triggers parsing inside
statement let's don't check assignment_details when setting
attribute docstrings.
2013-02-24 19:45:47 +01:00
Takafumi Arakaki
540eff3d42
Add test_attribute_docstring
2013-02-24 19:39:59 +01:00
Takafumi Arakaki
b6839fb264
Define Name.docstr as a proxy for Statement.docstr
2013-02-24 19:39:46 +01:00
Takafumi Arakaki
740f27c8b8
Add attribute docstrings (PEP 257) support
2013-02-24 19:39:22 +01:00
Takafumi Arakaki
19b41c1cb4
Make pr.Statement "document-able"
2013-02-24 19:36:39 +01:00
Takafumi Arakaki
524feca0de
Add TestDocstring
2013-02-24 17:40:18 +01:00
Takafumi Arakaki
679cd05acf
Set XDG_CACHE_HOME in tox to avoid contaminating ~/.cache
2013-02-24 15:01:39 +01:00
Takafumi Arakaki
d9ca833814
Make 2.5 test runnable with tox
2013-02-24 14:56:15 +01:00
Takafumi Arakaki
d1bcbd1559
Fix typo in development.rst
2013-02-15 18:34:25 +01:00
Takafumi Arakaki
98a6febb50
Fix typo s/Epidoc/Epydoc/g and add links for markups
2013-02-15 18:31:05 +01:00
Takafumi Arakaki
7f9eb272c4
Add '_sqlite3' to BaseDefinition._mapping
2013-02-09 01:32:53 +01:00
Takafumi Arakaki
44097bac22
Add 'posix' to BaseDefinition._mapping
...
Needed for "os.fsync", for example.
2013-02-09 01:32:43 +01:00
Takafumi Arakaki
ef30642f25
Add '_functools' to BaseDefinition._mapping
...
Needed for "functools.partial"
2013-02-09 01:30:30 +01:00
Takafumi Arakaki
2917da8025
Make :ROLE:TYPE handling more general
2013-02-01 17:57:24 +01:00
Takafumi Arakaki
26e27aecec
Add tox setup to run tests
2013-01-30 22:02:46 +01:00