diff options
| author | 2022-08-04 14:54:09 +0100 | |
|---|---|---|
| committer | 2022-08-04 14:54:09 +0100 | |
| commit | 0f4bc18ceb5ef5e55e003da409a3da8e3e1d9cf8 (patch) | |
| tree | 38656194737f358045b5a79ec853a341bbc61c88 | |
| parent | Merge pull request #2240 from python-discord/2238-purge-cmd (diff) | |
Disable nose plugin in pytest
This fixes an issue with pytest running functions called setup in test files when they shouldn't be run
| -rw-r--r-- | pyproject.toml | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/pyproject.toml b/pyproject.toml index 77d8ee3d4..255710386 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,3 +84,9 @@ case_sensitive = true  combine_as_imports = true  line_length = 120  atomic = true + +[tool.pytest.ini_options] +# We don't use nose style tests so disable them in pytest. +# This stops pytest from running functions named `setup` in test files. +# See https://github.com/python-discord/bot/pull/2229#issuecomment-1204436420 +addopts = "-p no:nose" | 
