diff options
| author | 2022-09-18 17:52:45 +0100 | |
|---|---|---|
| committer | 2022-09-18 17:52:45 +0100 | |
| commit | f3c92ea174436d6824687b9d7776a563d6816179 (patch) | |
| tree | 00684c73a2ddf1e5ab508e0b425c83aabdc59f27 | |
| parent | Use Python Poetry Base Action (#2277) (diff) | |
| parent | Merge branch 'main' into disable-pytest-nose-plugin (diff) | |
Merge pull request #2241 from python-discord/disable-pytest-nose-plugin
| -rw-r--r-- | pyproject.toml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml index 43eb799b6..36c3b5392 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,3 +85,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" |