Commit Graph

41 Commits

Author SHA1 Message Date
Dave Halter
10bc578bfe Merge branch 'master' into refactor 2020-03-13 23:53:09 +01:00
Dave Halter
656324f686 Disable some more tests for Python 2 2020-03-01 13:30:41 +01:00
Dave Halter
d1873f8e1e Windows uses backslashes for paths 2020-02-28 12:42:39 +01:00
Dave Halter
1f773d8e65 Refactoring is not allowed for environments and the current version lower than 3.6 2020-02-27 23:24:23 +01:00
Dave Halter
0ef8053919 Don't use a random grammar for extract 2020-02-27 22:50:30 +01:00
Dave Halter
140a45081f Python 3.5 is not supported for refactorings 2020-02-27 19:01:08 +01:00
Dave Halter
d1ac00f64f Fix run.py issue 2020-02-27 01:44:01 +01:00
Dave Halter
50be49544d Move indent_block to common 2020-02-19 09:15:39 +01:00
Dave Halter
b1d3c7ef52 Move indent_block to a separate utils 2020-02-18 18:50:40 +01:00
Dave Halter
ee8cdb667d Make it possible to test refactoring outputs a bit different 2020-02-15 00:59:26 +01:00
Dave Halter
a906a76ccd Don't support refactoring for Python 2 2020-02-14 17:19:21 +01:00
Dave Halter
dbf88f2750 Make it possible to be able to test errors for refactorings 2020-02-14 14:15:57 +01:00
Dave Halter
a39b2e95c1 Add another refactoring test 2020-02-11 21:13:55 +01:00
Dave Halter
e22a44d79e Remove a lot of nonsense from refactoring tests 2020-02-10 20:04:48 +01:00
Dave Halter
13b393a5e3 Get the first rename test passing 2020-02-10 17:42:23 +01:00
Dave Halter
6166e7961e Make sure that tests for refactoring are redirected 2020-02-09 14:05:16 +01:00
Levente Polyak
527ef6fcdd fix static analysis test skips with latest pytest
Latest pytest ensures pytest.skip is being called with a str parameter.
However, test_static_analysis passed over the skip parameter which
contains a tuple returned from skip_python_version leading to test
regression.
Unify the version skip reasons for both, static analysis and integration
tests by using a shared BaseTestCase parent to avoid code duplication.
Furthermore handle test_static_analysis skip_reason extraction
orthogonal to test_completion.
2019-09-21 21:42:05 +02:00
Daniel Hahler
a34ee5bb92 Revisit pytest config
- add testpaths setting
- tox: remove testpaths from posargs default
- s/py.test/pytest/
2018-06-30 23:02:39 +02:00
Dave Halter
e925661aff Skip tests according to the current environment 2017-12-26 15:07:57 +01:00
Dave Halter
7ad37fb976 Skip more tests if it's necessary. 2017-12-23 19:56:47 +01:00
Dave Halter
a96f2c43df Add a way to skip typing tests in non default environments 2017-12-20 10:07:16 +01:00
Dave Halter
a9ebd92c20 Add a way to specify environments in tox 2017-12-19 19:02:57 +01:00
Dave Halter
6bad5a924b Making it possible for static analysis tests to be skipped if the python version doesn't match. 2015-12-22 17:37:28 +01:00
Dave Halter
acb4959a6a temporary very unfinished solution for the *args/**kwargs combination problem, if they are used in common with dynamic params. This doesn't solve the issue entirely, but it's at least a start and will probably solve all autocompletion issues. However, static analysis needs a little bit more than that. 2014-06-04 17:18:09 +02:00
Dave Halter
f3e986a285 add multiple values for keyword type error detection 2014-05-26 18:40:02 +02:00
Dave Halter
425f7a8b64 better error reporting for static analysis 2014-05-26 17:31:50 +02:00
Dave Halter
d59e21f43c new way of gathering statements to evaluate for static analysis 2014-05-16 12:23:09 +02:00
Dave Halter
c92113a7b1 improved static analysis test base 2014-05-11 13:30:29 +02:00
Dave Halter
40a54961cd testing structure for static analysis. 2014-05-11 12:09:42 +02:00
Dave Halter
54568c1868 disable refactoring tests for now. 2014-04-18 17:29:01 +02:00
David Halter
7ab00242a8 finally change name of test.base module to helpers.py, fixes #181 2013-08-07 18:35:47 +04:30
David Halter
d16f5f6a4c refactored test_integration, so that those tests can be called from multiple places. 2013-04-20 21:55:08 +04:30
Takafumi Arakaki
ab5266b840 Automatically skip thirdparty test if not importable 2013-03-12 13:51:33 +01:00
Takafumi Arakaki
c87d3dad52 Remove unused imports 2013-03-12 11:04:15 +01:00
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
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
0f9761aac7 Fix tests for Python 3.2 (use relative import) 2013-03-12 07:11:37 +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
9018cea22e Rewrite integration test using py.test 2013-03-10 19:00:44 +01:00