add pytest config, add hack for reddit tests
This commit is contained in:
parent
bc0794cc37
commit
121ed58c17
2 changed files with 13 additions and 0 deletions
11
pytest.ini
Normal file
11
pytest.ini
Normal file
|
@ -0,0 +1,11 @@
|
|||
[pytest]
|
||||
# for now, running with with_my pytest tests/reddit.py
|
||||
# discover __init__,py as well
|
||||
# TODO also importing too much with it...
|
||||
python_files = reddit.py
|
||||
addopts =
|
||||
--verbose
|
||||
|
||||
# otherwise it won't discover doctests
|
||||
# eh? importing too much
|
||||
# --doctest-modules
|
2
tests/reddit.py
Normal file
2
tests/reddit.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
# ugh. workaround for https://github.com/pytest-dev/pytest/issues/1927
|
||||
from my.reddit import *
|
Loading…
Add table
Reference in a new issue