add pytest config, add hack for reddit tests

This commit is contained in:
Dima Gerasimov 2020-04-19 20:34:23 +01:00 committed by karlicoss
parent bc0794cc37
commit 121ed58c17
2 changed files with 13 additions and 0 deletions

11
pytest.ini Normal file
View 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
View file

@ -0,0 +1,2 @@
# ugh. workaround for https://github.com/pytest-dev/pytest/issues/1927
from my.reddit import *