mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-25 12:57:13 +08:00
Merge pull request #168 from tkf/norecursedirs
Run doctests in the "main" py.test run
This commit is contained in:
1
conftest.py
Normal file
1
conftest.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
collect_ignore = ["setup.py"]
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
[pytest]
|
[pytest]
|
||||||
addopts = --assert=plain
|
addopts = --assert=plain --doctest-modules
|
||||||
|
|
||||||
|
# Ignore broken files in blackbox test directories
|
||||||
|
norecursedirs = .* docs completion refactor
|
||||||
|
|
||||||
# Activate `clean_jedi_cache` fixture for all tests. This should be
|
# Activate `clean_jedi_cache` fixture for all tests. This should be
|
||||||
# fine as long as we are using `clean_jedi_cache` as a session scoped
|
# fine as long as we are using `clean_jedi_cache` as a session scoped
|
||||||
|
|||||||
3
tox.ini
3
tox.ini
@@ -5,9 +5,6 @@ deps =
|
|||||||
pytest
|
pytest
|
||||||
commands =
|
commands =
|
||||||
py.test []
|
py.test []
|
||||||
# Doctests can't be run with the main tests because then py.test
|
|
||||||
# tries to import broken python files under test/*/.
|
|
||||||
py.test --doctest-modules {toxinidir}/jedi
|
|
||||||
[testenv:py25]
|
[testenv:py25]
|
||||||
deps =
|
deps =
|
||||||
simplejson
|
simplejson
|
||||||
|
|||||||
Reference in New Issue
Block a user