From abd460fc8fe126a6ed0de20e4f51079e92960cc8 Mon Sep 17 00:00:00 2001 From: Christopher Burgess Date: Wed, 11 Dec 2019 09:44:21 +0000 Subject: [PATCH] refactor: Call doctests using pytest --- .circleci/config.yml | 9 +-------- pytest.ini | 4 +++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e05729d..8584d1b2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -38,14 +38,7 @@ jobs: name: "Run all tests, including live API" command: | . .venv/bin/activate - pytest -v - - - run: - name: "Run doctests" - command: | - . .venv/bin/activate - export LOG_LEVEL='ERROR' - python -m doctest -o ELLIPSIS -o FAIL_FAST vortexasdk/*.py + pytest -v --doctest-modules - run: name: "Build docs" diff --git a/pytest.ini b/pytest.ini index 1d508870..2fc54965 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,6 @@ [pytest] filterwarnings = error - ignore::DeprecationWarning: \ No newline at end of file + ignore::DeprecationWarning: + +doctest_optionflags= ELLIPSIS \ No newline at end of file