From 121ed58c17aeba089414df125a219b0ef647e522 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sun, 19 Apr 2020 20:34:23 +0100 Subject: [PATCH] add pytest config, add hack for reddit tests --- pytest.ini | 11 +++++++++++ tests/reddit.py | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 pytest.ini create mode 100644 tests/reddit.py diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..bb16ae29 --- /dev/null +++ b/pytest.ini @@ -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 diff --git a/tests/reddit.py b/tests/reddit.py new file mode 100644 index 00000000..30f23533 --- /dev/null +++ b/tests/reddit.py @@ -0,0 +1,2 @@ +# ugh. workaround for https://github.com/pytest-dev/pytest/issues/1927 +from my.reddit import *