Skip to content

Commit

Permalink
add pytest config, add hack for reddit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Apr 21, 2020
1 parent bc0794c commit 121ed58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions tests/reddit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ugh. workaround for https://github.com/pytest-dev/pytest/issues/1927
from my.reddit import *

0 comments on commit 121ed58

Please sign in to comment.