From 805280099d48014e6613287cf60831098da8bfd5 Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Thu, 25 Feb 2021 19:52:37 +0100 Subject: [PATCH] Invoke sugar also on CI, but not enable it by default This way it's possible to disable it with using pytest -p no:sugar and this can be useful since, for example, hypothesis statistics are not showed: https://github.com/Teemu/pytest-sugar/issues/221 --- .drone.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4afb805..9cd9cc1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,4 +11,4 @@ steps: - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - - export PATH=$PATH:$HOME/.poetry/bin - poetry install - - poetry run pytest + - poetry run pytest --force-sugar diff --git a/pyproject.toml b/pyproject.toml index b0b12bb..3bb15ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ pytest-xdist = "^2.2.1" [tool.pytest.ini_options] minversion = "6.0" -addopts = "--verbose --force-sugar" +addopts = "--verbose" [build-system] requires = ["poetry-core>=1.0.0"]